docs: function(func, wait, options) {
        var leading = true,
            trailing = true;
  
        if (options === false) {
          leading = false;
        } else if ($$.is.plainObject(options)) {
          leading = 'leading' in options ? options.leading : leading;
          trailing = 'trailing' in options ? options.trailing : trailing;
        }
        options = options || {};
        options.leading = leading;
        options.maxWait = wait;
        options.trailing = trailing;
  
        return $$.util.debounce(func, wait, options);
      }