Type alias | Description |
---|---|
TinyEventDispatcher | A record value which holds the listeners that will react to events. |
TinyEventListener | Signature of an event listener function. |
Function | Description |
---|---|
addListener | Add the given listener for the given event to the given TinyEventDispatcher . |
addStarListener | Add a wildcard listener for all possible events to the given TinyEventDispatcher . |
createTinyEventDispatcher | Create an empty TinyEventDispatcher value. |
notify | Notify all relevant listeners of the given event with the given event data. |
removeAllListeners | Remove all listeners from the given TinyEventDispatcher . |
removeListener | Remove the given listener for the given event from the given TinyEventDispatcher . |
removeStarListener | Remove the given wildcard listener from the given TinyEventDispatcher . |