function (event, args) {
      // `arguments` is an object, not array, in FF, so:
      args = Array.prototype.slice.call(arguments);
      event = event.toLowerCase();
      var preventDefault = false;
      if (this.events.hasOwnProperty(event)) {
        each(this.events[event], function (callback) {
          preventDefault = callback.apply(this, args.slice(1)) === false || preventDefault;
        }, this);
      }
      if (event != 'catchall') {
        args.unshift('catchAll');
        preventDefault = this.fire.apply(this, args) === false || preventDefault;
      }
      return !preventDefault;
    }
function (event, args) {
      // `arguments` is an object, not array, in FF, so:
      args = Array.prototype.slice.call(arguments);
      event = event.toLowerCase();
      var preventDefault = false;
      if (this.events.hasOwnProperty(event)) {
        each(this.events[event], function (callback) {
          preventDefault = callback.apply(this, args.slice(1)) === false || preventDefault;
        }, this);
      }
      if (event != 'catchall') {
        args.unshift('catchAll');
        preventDefault = this.fire.apply(this, args) === false || preventDefault;
      }
      return !preventDefault;
    }
function ( event , args ) { // `arguments` is an object, not array, in FF, so: args = Array . prototype . slice . call ( arguments ) ; event = event . toLowerCase ( ) ; var preventDefault = false ; if ( this . events . hasOwnProperty ( event ) ) { each ( this . events [ event ] , function ( callback ) { preventDefault = callback . apply ( this , args . slice ( 1 ) ) === false || preventDefault ; } , this ) ; } if ( event != 'catchall' ) { args . unshift ( 'catchAll' ) ; preventDefault = this . fire . apply ( this , args ) === false || preventDefault ; } return ! preventDefault ; }
Fire an event
@function
@param {string} event event name
@param {...} args arguments of a callback
@return {bool} value is false if at least one of the event handlers which handled this event
returned false. Otherwise it returns true.
Fire an event