A simple publisher-subscriber implementation.
Fires an event notifying all subscribers.
Additional data object to be passed to all handlers.
Optional.
An <code>EventData</code> object to be passed to all handlers.
For DOM events, an existing W3C/jQuery event object can be passed in.
Optional.
The scope ("this") within which the handler will be executed.
If not specified, the scope will be set to the <code>Event</code> instance.
any
Last run callback result.
any
Adds an event handler to be called when the event is fired.
Event handler will receive two arguments - an EventData
and the data
object the event was fired with.
Event handler.
Removes an event handler added with subscribe(fn)
.
Event handler to be removed.