Simple event utility. Instantiate the model, then subscribe and trigger events.
Private
Clears all subscriptions.
Subscribes to this event. The provided callback will be called when the event is triggered.
A function that can be called to unsubscribe from this event.
Triggers this event with optional data. This will call all subscribed callbacks.
Optional
Unsubscribes from this event.
specific subscription entry to remove.
please use the returned function from Subscribe() instead of this function.
Generated using TypeDoc
Simple event utility. Instantiate the model, then subscribe and trigger events.