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
IEventSubscriber provides a minimal interface for subscribing to, and unsubscribing from events.
This interface as added mainly as a way of abstracting subscriptions to HTML events, to make the system more easily testable.