Standard implementation of the Events interface.
Registers an event listener.
The event type.
The callback function.
Dispatches an event.
Optional data associated with the event.
Removes a registered event listener.
The callback function to remove.
Standard implementation of the Events interface.