tasks/lib/types.js
function (eventName, args)
  {
    var e = this._events[eventName];
    if (e) {
      args = args || [];
      e.forEach (function (handler)
      {
        handler.apply (this, args);
      });
    }
  }
function (eventName, args)
  {
    var e = this._events[eventName];
    if (e) {
      args = args || [];
      e.forEach (function (handler)
      {
        handler.apply (this, args);
      });
    }
  }
function ( eventName , args ) { var e = this . _events [ eventName ] ; if ( e ) { args = args || [ ] ; e . forEach ( function ( handler ) { handler . apply ( this , args ) ; } ) ; } }
Calls all registered event handlers for the specified event.
@param {ContextEvent} eventName
@param {Array?} args
Calls all registered event handlers for the specified event .