Class Event.Custom
Object
|
+--Event.Custom
- class
Event.Custom
Defined in core.js
Method Summary |
<static> void
|
addListener(type, fn, key)
Registers specified listener for specified event type.
|
<static> Object
|
listeners(type)
Lists listener keys for specified event type.
|
<static> void
|
raise(type, data, async)
Raises specified event type.
|
<static> void
|
removeAllListenersForId(id)
Unregisters all listeners for specified element id.
|
<static> void
|
removeListener(type, key)
Unregisters specified listener for specified event type.
|
Event.Custom
Event.Custom()
addListener
<static> void addListener(type, fn, key)
Registers specified listener for specified event type.
Parameters:
fn
- Listner function. Receives one argument: - data
- Event data. Event can be canceled by calling stopPropagation() method on data.
key
- (optional) Key with which to unregister function (defaults to fn).
listeners
<static> Object listeners(type)
Lists listener keys for specified event type.
Returns:
Array of keys used for register listeners. Never null.
raise
<static> void raise(type, data, async)
Raises specified event type.
Parameters:
async
- (optional) True to raise asynchronously.
removeAllListenersForId
<static> void removeAllListenersForId(id)
Unregisters all listeners for specified element id.
removeListener
<static> void removeListener(type, key)
Unregisters specified listener for specified event type.
Parameters:
key
- Key used to register listener.
Documentation generated by
JSDoc on Mon Aug 30 14:56:06 2021