events.js
function (eventNames) {
            
            var events = this._events;
            
            for (var i = 0; i < arguments.length; i++) {
                var eventName = arguments[i];
                this._validateName(eventName);
                
                if (typeof events[eventName] === 'undefined') {
                    events[eventName] = [];
                }
            }
            
            return this;
        }
function (eventNames) {
            
            var events = this._events;
            
            for (var i = 0; i < arguments.length; i++) {
                var eventName = arguments[i];
                this._validateName(eventName);
                
                if (typeof events[eventName] === 'undefined') {
                    events[eventName] = [];
                }
            }
            
            return this;
        }
function ( eventNames ) { var events = this . _events ; for ( var i = 0 ; i < arguments . length ; i ++ ) { var eventName = arguments [ i ] ; this . _validateName ( eventName ) ; if ( typeof events [ eventName ] === 'undefined' ) { events [ eventName ] = [ ] ; } } return this ; }
Defines a list of events.
@param eventNames {String...}
@returns {Events}
Defines a list of events .