dist/evrythng.js
function _normalizeArguments(obj) {
    var args = arguments;

    if (!obj || Utils.isFunction(obj)) {
      args = Array.prototype.slice.call(arguments, 0);
      args.unshift({});
    }

    // Split full path (/actions/_custom) - we get three parts:
    // 1) empty, 2) root path and 3) encoded action type name
    var url = this.path.split('/');

    args[0].url = '/' + url[1];
    args[0].params = Utils.extend(args[0].params, {
      filter: {
        name: decodeURIComponent(url[2])
      }
    });

    return args;
  }
function _normalizeArguments(obj) {
    var args = arguments;

    if (!obj || Utils.isFunction(obj)) {
      args = Array.prototype.slice.call(arguments, 0);
      args.unshift({});
    }

    // Split full path (/actions/_custom) - we get three parts:
    // 1) empty, 2) root path and 3) encoded action type name
    var url = this.path.split('/');

    args[0].url = '/' + url[1];
    args[0].params = Utils.extend(args[0].params, {
      filter: {
        name: decodeURIComponent(url[2])
      }
    });

    return args;
  }
function _normalizeArguments ( obj ) { var args = arguments ; if ( ! obj || Utils . isFunction ( obj ) ) { args = Array . prototype . slice . call ( arguments , 0 ) ; args . unshift ( { } ) ; } // Split full path (/actions/_custom) - we get three parts: // 1) empty, 2) root path and 3) encoded action type name var url = this . path . split ( '/' ) ; args [ 0 ] . url = '/' + url [ 1 ] ; args [ 0 ] . params = Utils . extend ( args [ 0 ] . params , { filter : { name : decodeURIComponent ( url [ 2 ] ) } } ) ; return args ; }
Normalize arguments for single request. Override resource url to use action types root path and use name filter. Extend params if user defines other params.
Normalize arguments for single request . Override resource url to use action types root path and use name filter . Extend params if user defines other params .