benchmarks/scenarios/ember.js
function () {
      this._super.apply(this, arguments);
      var name = arguments[0];
      var method = this[name];
      if (method) {
        var length = arguments.length;
        var args = new Array(length - 1);
        for (var i = 1; i < length; i++) {
          args[i - 1] = arguments[i];
        }
        return method.apply(this, args);
      }
    }
function () {
      this._super.apply(this, arguments);
      var name = arguments[0];
      var method = this[name];
      if (method) {
        var length = arguments.length;
        var args = new Array(length - 1);
        for (var i = 1; i < length; i++) {
          args[i - 1] = arguments[i];
        }
        return method.apply(this, args);
      }
    }
function ( ) { this . _super . apply ( this , arguments ) ; var name = arguments [ 0 ] ; var method = this [ name ] ; if ( method ) { var length = arguments . length ; var args = new Array ( length - 1 ) ; for ( var i = 1 ; i < length ; i ++ ) { args [ i - 1 ] = arguments [ i ] ; } return method . apply ( this , args ) ; } }
Override the default event firing from `Ember.Evented` to
also call methods with the given name.
@method trigger
@param name {String}
@private
Override the default event firing from Ember . Evented to also call methods with the given name .