Methods
.addEventListener( type : string, listener : function )
Adds the given event listener to the given event type.
| type |
The type of event to listen to. |
| listener |
The function that gets called when the event is fired. |
.dispatchEvent( event : Object )
Dispatches an event object.
| event |
The event that gets fired. |
.hasEventListener( type : string, listener : function ) : boolean
Returns true if the given event listener has been added to the given event type.
| type |
The type of event. |
| listener |
The listener to check. |
- Returns: Whether the given event listener has been added to the given event type.
.removeEventListener( type : string, listener : function )
Removes the given event listener from the given event type.
| type |
The type of event. |
| listener |
The listener to remove. |