Registers a callback function to be executed whenever the event is raised.
An optional scope can be provided to serve as the this
pointer
in which the function will execute.
The function to be executed when the event is raised.
A function that will remove this event listener when invoked.
Raises the event by calling each registered listener with all supplied arguments.
This method takes any number of parameters and passes them through to the listener functions.
Unregisters all listener
Unregisters a previously registered callback.
The function to be unregistered.
true
if the listener was removed; false
if the listener and scope are not registered with the event.
The number of listeners currently subscribed to the event.