Type-safe event dispatcher.
Registers an event handler of a specific event type.
Dispatches the event to the list of handlers for event.type.
event
event.type
false if event is cancelled; true otherwise.
false
true
Removes an event listener.
Generated using TypeDoc
Type-safe event dispatcher.