Methods
addCallback(cb) → {Number}
Add a callback to this event type
Parameters:
Name | Type | Description |
---|---|---|
cb |
function | Callback function that may be called with an event object If true is returned, the event is considered consumed |
- Source:
Returns:
The id for this callback. Can be used to remove the callback
- Type
- Number
notify(event)
Notify all callbacks attached to this event
Parameters:
Name | Type | Description |
---|---|---|
event |
Object | The event object |
- Source:
removeCallback(id)
Removes a callback
Parameters:
Name | Type | Description |
---|---|---|
id |
Number | The id of the callback to be removed |
- Source: