The target object, whose event subscriptions are being managed.
The target object, whose event subscriptions are being managed.
Add a subscription to some event by name.
The event to subscribe to.
The function to be called when the event is fired. The expected function definition will depend upon which event is being subscribed to.
Remove a subscription to some event by name.
The event to unsubscribe from.
The function to be called when the event is fired. The expected function definition will depend upon which event is being subscribed to.
Generated using TypeDoc
The EventSubscriber holds a reference to a target object, for which it manages the event subscriptions by calling the addEventListener & removeEventListener methods.