src/eventsource.js
function( eventName, eventArgs ) {
        //uncomment if you want to get a log of all events
        //$.console.log( eventName );
        var handler = this.getHandler( eventName );

        if ( handler ) {
            if ( !eventArgs ) {
                eventArgs = {};
            }

            handler( this, eventArgs );
        }
    }
function( eventName, eventArgs ) {
        //uncomment if you want to get a log of all events
        //$.console.log( eventName );
        var handler = this.getHandler( eventName );

        if ( handler ) {
            if ( !eventArgs ) {
                eventArgs = {};
            }

            handler( this, eventArgs );
        }
    }
function ( eventName , eventArgs ) { //uncomment if you want to get a log of all events //$.console.log( eventName ); var handler = this . getHandler ( eventName ) ; if ( handler ) { if ( ! eventArgs ) { eventArgs = { } ; } handler ( this , eventArgs ) ; } }
Trigger an event, optionally passing additional information.
@function
@param {String} eventName - Name of event to register.
@param {Object} eventArgs - Event-specific data.
Trigger an event optionally passing additional information .