Little Dispatcher inspired by MicroEvent.js
Members
-
static,readonlyBarba.Dispatcher.eventsObject
-
Object that keeps all the events
Methods
-
staticBarba.Dispatcher.off(eventName, function)
Dispatcher/Dispatcher.js, line 36 -
Unbind event
Name Type Description eventName
String function
function -
staticBarba.Dispatcher.on(eventName, function)
Dispatcher/Dispatcher.js, line 24 -
Bind a callback to an event
Name Type Description eventName
String function
function -
staticBarba.Dispatcher.trigger(eventName, args)
Dispatcher/Dispatcher.js, line 50 -
Fire the event running all the event associated to it
Name Type Description eventName
String args
* repeatable