Static
trackerArray that tracks events for instances
Static
storedIDsArray of stored IDs so that multiple of the same ID cannot be claimed
Weakmap to track data belonging to instances used in this module.
The version of the module.
Private
loggerThe logger module this module uses to log errors / logs
Adds an event listener function to pInstance to call whenever pEventName is called
The instance to add an event listener to
The name of the event to add the listener to
The function to be called when this event is called
Listens for an event on an instance. Preserves any original event function code, while also allowing multiple event listeners to call on the same event.
The instance that has the event
The event name to listen for
File
A plugin that allows you to add event listeners on objects. Have your code called alongside an event!
Author
https://github.com/doubleactii
License
Pulse is free software, available under the terms of a MIT style License.