This provides methods used for event handling. It's not meant to
be used directly.
Methods
-
static fire(eventName, eventData)
-
Fire an event, causing all handlers for that event name to run.
Parameters:
Name Type Description eventNamestring Name of the event.
eventDataObject The data provided to each handler.
-
static on(eventName, handler)
-
Register a handler function to be called whenever this event is fired.
Parameters:
Name Type Description eventNamestring Name of the event.
handlerfunction The handler to call.