-
Notifications
You must be signed in to change notification settings - Fork 3
EventDispatcher.API
Henryk Wollik edited this page Jul 28, 2014
·
1 revision
EventDispatcher base class.
- Source:
-
Register an event callback for a certain type.
Name Type Description type
String The event type
method
function Callback if event is raised
- Source:
-
Dispatch an event
Name Type Description event
Event The event
- Source:
-
Returns the number of listerners for a certain event type.
- Source:
- Type
- *
-
Returns true there are listeners for a event type.
Name Type Description type
String The type
- Source:
- Type
- Boolean
-
Completely remove all listeners.
- Source:
-
Remove a callback from the dispatcher.
Name Type Argument Description type
String = The type
method
function <optional>
The callback to be removed (if not specified, all callbacks will be removed)
- Source: