module
meteoJS/events
Source: Events.
Methods
static
addEventFunctions(obj)
Fügt einem Objekt alle Event-Funktionen hinzu.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
obj |
object |
|
abstract inner
hasListener(listener) → boolean
Gibt es Listener Funktionen für einen Event Type
Parameter
Name | Type | Optional | Description |
---|---|---|---|
listener |
string |
|
Event type. |
- Returns
-
boolean
abstract inner
on(listener, callback[, thisArg]) → number
Listen for a certain type of event
Parameters
Name | Type | Optional | Description |
---|---|---|---|
listener |
string |
|
Event type. |
callback |
callback |
|
Listener function. |
thisArg |
mixed |
Yes |
Objekt für this beim Ausführen von callback. |
- Returns
-
number
Listener function key.
abstract inner
once(listener, callback[, thisArg])
Listen once for a certain type of event
Parameters
Name | Type | Optional | Description |
---|---|---|---|
listener |
string |
|
Event type. |
callback |
callback |
|
Listener function. |
thisArg |
mixed |
Yes |
Objekt für this beim Ausführen von callback. |
abstract inner
trigger(listener)
Execute all listener functions für einen Event Type
Parameter
Name | Type | Optional | Description |
---|---|---|---|
listener |
string |
|
Event type. |
abstract inner
un(listener, key)
Unlisten for a certain type of event
Parameters
Name | Type | Optional | Description |
---|---|---|---|
listener |
string |
|
Event type. |
key |
number |
|
Listener function key. |