Optional
The scope independent event registry for subscribing and managing listeners.
A lazy-initialized event for listening for disposal.
The scope independent function for subscribing to an event.
Protected
Attempts to add a listener.
The registered Id of the listener. Returns NaN if this has been disposed.
Id
ArgumentNullException if the listener is null.
ArgumentNullException
ArgumentException if the listener already exists.
ArgumentException
Clears all listeners.
The number of listeners cleared. Returns NaN if this has been disposed.
Creates a scope independent function for subscribing to an event.
Dispatches payload to listeners.
ObjectDisposedException If this has been disposed.
ObjectDisposedException
Registers a listener. If the listener already exists, nothing changes and the original Id is returned.
Removes a listener by Id.
The registered Id of the listener.
The listener or undefined if not found.
The scope independent event registry for subscribing and managing listeners.