EventHandler.js

1 ) function: handleEvent
2 ) function: addEventListeners


Object: EventHandler

Object Description: Creates a generic EventHandler class for all the GUI
elements that exist. Various event listeners are also created
depending on the needs of the element
Example:


Constructor: EventHandler


Method: handleEvent
Description: calls appropriate event
  • Parameter
    s: evt - incoming event
Note: if ( e.type in this ) this[e.type](e);
only works in IE6.0 and maybe IE5.5


Method: addEventListeners
Description: adds standard event listeners for all GUI Elements.
  • Parameter
    s: obj, the SVG Element that the event listener is added to