Number of active listeners on this dispatcher instance.
Add event listener.
Event name for which to listen to
Listener function that will be invoked as event with specified name is dispatched.
Listener scope which will be applied as listener is invoked. (You can leave it undefined, if you don't care about scope that much).
Null in case if event name is already mapped to same function. Or EventMapping object
which is to be used in order to set some of mapping properties like once()
which will make listener
to be executed upon first event dispatch and then be gone.
Dispatch event object to all subscribed listeners.
Event object that defines event type and data
True if any event mappings to event name have been found; false otherwise.
Dispatch event notification by separate type and data arguments.
Event type to be dispatched.
Arbitrary data to ship along with event dispatch.
True if any event mappings to event name have been found; false otherwise.
Check if event dispatcher has mapping of certain event to listener.
Target event name.
Listener function.
Listener scope which will be applied as listener is invoked.
true if event mapping is found and false otherwise
Add event listener that will be executed only once.
Event name for which to listen to
Listener function that will be invoked as event with specified name is dispatched.
Listener scope which will be applied as listener is invoked. (You can leave it undefined, if you don't care about scope that much).
Null in case if event name is already mapped to same function. Or EventMapping object
which is to be used in order to set some of mapping properties like once()
which will make listener
to be executed upon first event dispatch and then be gone.
Remove all listeners registered with specified scope or with the whole dispatcher instance.
Scope from which all listeners mapped listeners will be removed. If not specified, all listeners will be removed from whole dispatcher instance.
True if any listeners to remove where found; false otherwise.
Remove event listener.
Target event name.
Listener function.
Listener scope which will be applied as listener is invoked.
True if event name binding to listener function was found or false if it was found not.
Remove all listeners of a particular event from all scopes or the specified scope.
Event name to be unmapped from all listeners.
Listener scope from which all listeners mapped to eventType will be removed.
True if any of mappings have been found; false otherwise.
Custom implementation of EventDispatcher that will trigger command map each time EventDispatcher receives event dispatch
Jānis Radiņš