Core.ListenerList
Constructor Summary | |
---|---|
Public | Core.ListenerList() Creates a new listener list. |
Instance Field Summary | |
---|---|
Internal | _data Array containing event types and event listeners. |
Instance Method Summary | |
---|---|
Public | addListener() Adds an event listener. |
Public | fireEvent() Fires an event. |
Public | getListenerTypes() Returns an array containing the types of all listeners in the list. |
Public | getListeners() Returns an array of all listeners for a specific event type. |
Public | getListenerCount() Determines the number of listeners for a specific event type. |
Public | hasListeners() Determines if the listeners list has any listeners of a specific type. |
Public | isEmpty() Determines if any number of listeners are registered to the list. |
Public | removeListener() Removes an event listener. |
Public | toString() Creates a string representation of the listener list. |
eventType
(String)
- the event typeeventTarget
(Function)
- the event targetevent
- the event to fireeventType
(String)
- the event typeeventType
(String)
- the event typeeventType
(String)
- the event typeeventType
(String)
- the event typeeventTarget
(Function)
- the event target