mxEventSource

Base class for all event sources.

Summary
mxEventSourceBase class for all event sources.
Variables
eventListenersHolds the registered listeners.
Functions
addListenerAdds a listener for the given event name.
fireEventFires the event for the specified name.

Variables

eventListeners

var $eventListeners

Holds the registered listeners.

Functions

addListener

function addListener($name,
$listener)

Adds a listener for the given event name.  Note that the method of the listener object must have the same name as the event it’s being added for.  This is different from other language implementations of this class.

fireEvent

function fireEvent($event)

Fires the event for the specified name.

var $eventListeners
Holds the registered listeners.
function addListener($name,
$listener)
Adds a listener for the given event name.
function fireEvent($event)
Fires the event for the specified name.
Close