Synchronously calls each of the listeners registered for the event named name, in the order they were registered, passing the supplied arguments to each.
name
Returns true if the listeners array for the event named name includes listener
true
listener
Returns the number of listeners listening to the event named name.
Removes the specified listener from the listener array for the event named name.
Adds the listener function to the end of the listeners array for the event named name.
Adds a one-time listener function for the event named name. The next time name is triggered, this listener is removed and then invoked.
Removes all listeners of the event named name.
Alias for off
Static
Synchronously calls each of the listeners registered for the event named
name
, in the order they were registered, passing the supplied arguments to each.