Simple implementation of an event class. Add callbacks to be notified when the event is triggered.
Add a callback function to this event. The callback function will be executed when this event is triggered.
Callback function to execute
The callback passed in, can be used with remove()
remove()
Remove a callback function from this event.
Callback function to remove
Trigger the event so that all callbacks are executed. All arguments given will be passed to the callbacks.
Arguments to pass to callbacks
Simple implementation of an event class. Add callbacks to be notified when the event is triggered.