Base class for objects that dispatches events.
Add an event listener
The self object, for chainability.
Emit an event.
Check if any event listener of the given type is added
Check if an event listener is added
Remove an event listener
Base class for objects that dispatches events.