Simple custom event implementation.
attach
type
listener
Adds a listener for a given event type.
detach
type
listener
Removes a listener for a given event type.
fire
event
Fires an event based on the passed-in object.
subscribe
type
listener
Adds a listener for a given event type.