IEventGroup
A group of event listeners.
Constructor
IEventGroup()
Methods
Name |
Returns |
Description |
Adds an event listener. |
||
Deletes an event listener from the group. |
||
Deletes all event listeners from the group. |
Methods details
add
{IEventGroup} add(types, callback[, context[, priority]])
Adds an event listener.
Returns self-reference.
Parameters:
Parameter |
Default value |
Description |
— |
Type: String|String[] Type or array of types for the event. |
|
— |
Type: Function Handler function. The event object is passed to the function as a parameter. |
|
— |
Type: Object Context for the handler function. |
|
0 |
Type: Integer Subscription priority. |
* Mandatory parameter/option.
remove
{IEventGroup} remove(types, callback[, context[, priority]])
Deletes an event listener from the group.
Returns self-reference.
Parameters:
Parameter |
Default value |
Description |
— |
Type: String|String[] Type or array of types for the events. |
|
— |
Type: Function Handler function. The event object is passed to the function as a parameter. |
|
— |
Type: Object Context for the handler function. |
|
0 |
Type: Integer Subscription priority. |
* Mandatory parameter/option.
removeAll
{IEventGroup} removeAll()
Deletes all event listeners from the group.
Returns self-reference.
Mandatory parameter/option.