benchmarks/scenarios/ember.js
function (name) {
      var route = _containerOwner.getOwner(this).lookup('route:' + name);

      if (!route) {
        return {};
      }

      var transition = this.router.router.activeTransition;
      var state = transition ? transition.state : this.router.router.state;

      var params = {};
      _emberMetalAssign.default(params, state.params[name]);
      _emberMetalAssign.default(params, getQueryParamsFor(route, state));

      return params;
    }
function (name) {
      var route = _containerOwner.getOwner(this).lookup('route:' + name);

      if (!route) {
        return {};
      }

      var transition = this.router.router.activeTransition;
      var state = transition ? transition.state : this.router.router.state;

      var params = {};
      _emberMetalAssign.default(params, state.params[name]);
      _emberMetalAssign.default(params, getQueryParamsFor(route, state));

      return params;
    }
function ( name ) { var route = _containerOwner . getOwner ( this ) . lookup ( 'route:' + name ) ; if ( ! route ) { return { } ; } var transition = this . router . router . activeTransition ; var state = transition ? transition . state : this . router . router . state ; var params = { } ; _emberMetalAssign . default ( params , state . params [ name ] ) ; _emberMetalAssign . default ( params , getQueryParamsFor ( route , state ) ) ; return params ; }
Retrieves parameters, for current route using the state.params
variable and getQueryParamsFor, using the supplied routeName.
@method paramsFor
@param {String} name
@public
Retrieves parameters for current route using the state . params variable and getQueryParamsFor using the supplied routeName .