events.js
function (eventName) {
            var fns = this._events[eventName];
            
            if (typeof fns === 'undefined') {
                throw "IllegalArgumentException: unsupported eventName (" + eventName + ")";
            }
            
            if (fns.length > 0) {
                var args = [];
                for (var i = 1; i < arguments.length; i++) {
                    args.push(arguments[i]);
                }
                
                var hasFoundFalse = false;
                for ( var i = 0;
                          i < fns.length && !hasFoundFalse;
                          i++ ) {
                    if (fns[i].apply(this, args) === false) {
                        hasFoundFalse = true;
                    }
                }
                if (hasFoundFalse) {
                    return false;
                }
            }
            
            return true;
        }
function (eventName) {
            var fns = this._events[eventName];
            
            if (typeof fns === 'undefined') {
                throw "IllegalArgumentException: unsupported eventName (" + eventName + ")";
            }
            
            if (fns.length > 0) {
                var args = [];
                for (var i = 1; i < arguments.length; i++) {
                    args.push(arguments[i]);
                }
                
                var hasFoundFalse = false;
                for ( var i = 0;
                          i < fns.length && !hasFoundFalse;
                          i++ ) {
                    if (fns[i].apply(this, args) === false) {
                        hasFoundFalse = true;
                    }
                }
                if (hasFoundFalse) {
                    return false;
                }
            }
            
            return true;
        }
function ( eventName ) { var fns = this . _events [ eventName ] ; if ( typeof fns === 'undefined' ) { throw "IllegalArgumentException: unsupported eventName (" + eventName + ")" ; } if ( fns . length > 0 ) { var args = [ ] ; for ( var i = 1 ; i < arguments . length ; i ++ ) { args . push ( arguments [ i ] ) ; } var hasFoundFalse = false ; for ( var i = 0 ; i < fns . length && ! hasFoundFalse ; i ++ ) { if ( fns [ i ] . apply ( this , args ) === false ) { hasFoundFalse = true ; } } if ( hasFoundFalse ) { return false ; } } return true ; }
Sends an event to all listeners.

This method returns <code>false</code> if any of the
listeners returned <code>false</code>.  If there are
no listeners to this event, or if none of them
returned <code>false</code>, this method returns <code>true</code>.

Typically, a listener will return <code>false</code> to indicate
that a browser event should not continue to bubble up the DOM; callers
can look for a return value equals to <code>false</code> to
recognize those cases.

@param eventName {String}
@returns {Boolean}
Sends an event to all listeners .