Core
ListenerList
Class Hierarchy:

A collection of event listeners. Provides capability to manage listeners of multiple types, and fire events to listeners based on type.

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.

Constructor Detail
Core.ListenerList()
Creates a new listener list.

Instance Method Detail
addListener
Adds an event listener.
Parameters:
eventType (String) - the event type
eventTarget (Function) - the event target

fireEvent
Fires an event.
Parameters:
event - the event to fire
Returns:
(Boolean) true if all event listeners returned values that evaluate to true, or false if any event listeners returned values that evaluate to false

getListenerTypes
Returns an array containing the types of all listeners in the list.
Returns:
(Array) the event types

getListeners
Returns an array of all listeners for a specific event type.
Parameters:
eventType (String) - the event type
Returns:
(Array) the listeners

getListenerCount
Determines the number of listeners for a specific event type.
Parameters:
eventType (String) - the event type
Returns:
(Number) the listener count

hasListeners
Determines if the listeners list has any listeners of a specific type.
Parameters:
eventType (String) - the event type
Returns:
(Boolean) true if any listeners exist

isEmpty
Determines if any number of listeners are registered to the list.
Returns:
(Boolean) true if the listener list is empty

removeListener
Removes an event listener.
Parameters:
eventType (String) - the event type
eventTarget (Function) - the event target

toString
Creates a string representation of the listener list. This should be used for debugging purposes only.