Event interface in {eventName: (...args) => void}
format.
Emit specified event with event name
and parameters.
The event name.
The parameters that will be passed to event listeners.
Check whether listener
is in the list for listening specified event name
.
The event name.
The event listener to check.
The scope binded to listener. If provided, will additionally check whether the scope match.
Check whether any listener
is listening specified event name
.
The event name.
Removes the listener
that is listening specified event name
.
The event name.
The event listener, only matched listener will be removed.
The scope binded to listener. If provided, remove listener only when scope match.
Registers an event listener
to listen event with specified name
.
The event name.
The event listener.
The scope will be binded to listener.
Registers an event listener
to listen event with specified name
, triggers for only once.
The event name.
The event listener.
The scope will be binded to listener.
Removes all the event listeners.
Generated using TypeDoc
Event emitter as super class to listen and emit custom events.