Creates eventDispatcher object. It needs to be call with '.call' to add the functionality to an object.
Adds a listener to an event type.
The type of event to listen to.
The that gets called when the event is fired.
Fire an event type.
Checks if listener is added to an event type.
The type of event to listen to.
The that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener that gets removed.
Generated using TypeDoc
JavaScript events for custom objects. Eventdispatcher on GitHub
Code Example