public/lib/emberjs/ember.js
function(name) {
        var length = arguments.length;
        var args = new Array(length - 1);

        for (var i = 1; i < length; i++) {
          args[i - 1] = arguments[i];
        }

        sendEvent(this, name, args);
      }
function(name) {
        var length = arguments.length;
        var args = new Array(length - 1);

        for (var i = 1; i < length; i++) {
          args[i - 1] = arguments[i];
        }

        sendEvent(this, name, args);
      }
function ( name ) { var length = arguments . length ; var args = new Array ( length - 1 ) ; for ( var i = 1 ; i < length ; i ++ ) { args [ i - 1 ] = arguments [ i ] ; } sendEvent ( this , name , args ) ; }
Triggers a named event for the object. Any additional arguments
will be passed as parameters to the functions that are subscribed to the
event.

```javascript
person.on('didEat', function(food) {
console.log('person ate some ' + food);
});

person.trigger('didEat', 'broccoli');

outputs: person ate some broccoli
```
@method trigger
@param {String} name The name of the event
@param {Object...} args Optional arguments to pass on
Triggers a named event for the object . Any additional arguments will be passed as parameters to the functions that are subscribed to the event .