js/core/Component.js
function (event) {
                for (var i = 0; i < this.events.length; i++) {
                    if (event === this.events[i]) {
                        return true;
                    }
                }
                return false;
            }
function (event) {
                for (var i = 0; i < this.events.length; i++) {
                    if (event === this.events[i]) {
                        return true;
                    }
                }
                return false;
            }
function ( event ) { for ( var i = 0 ; i < this . events . length ; i ++ ) { if ( event === this . events [ i ] ) { return true ; } } return false ; }
Returns true if event is defined in Component event list
@param event
Returns true if event is defined in Component event list