game.js
function() {
      var callbacks, event, parameters;
      event = arguments[0], parameters = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
      callbacks = eventCallbacks[event];
      if (callbacks && callbacks.length) {
        self = this;
        return callbacks.each(function(callback) {
          return callback.apply(self, parameters);
        });
      }
    }
function() {
      var callbacks, event, parameters;
      event = arguments[0], parameters = 2 <= arguments.length ? __slice.call(arguments, 1) : [];
      callbacks = eventCallbacks[event];
      if (callbacks && callbacks.length) {
        self = this;
        return callbacks.each(function(callback) {
          return callback.apply(self, parameters);
        });
      }
    }
function ( ) { var callbacks , event , parameters ; event = arguments [ 0 ] , parameters = 2 <= arguments . length ? __slice . call ( arguments , 1 ) : [ ] ; callbacks = eventCallbacks [ event ] ; if ( callbacks && callbacks . length ) { self = this ; return callbacks . each ( function ( callback ) { return callback . apply ( self , parameters ) ; } ) ; } }
Calls all listeners attached to the specified event.

# calls each event handler bound to "someCustomEvent"
yourObject.trigger "someCustomEvent"

@name trigger
@methodOf Bindable#
@param {String} event The event to trigger.
@param {Array} [parameters] Additional parameters to pass to the event listener.
Calls all listeners attached to the specified event .