JSL.event

All the event related functions are in this class.

JSL.event Code

JSL.event.add( ele, type, func, capture )
The famous addEvent function. But calling it in this format is not the preffered method. Use the DOM interface to make the call.

Arguments

 * ele
 * The Element to which the event should be attached. This must be a DOM Node.


 * type
 * The event type - "load", 'mouseover', 'click', etc.


 * func
 * The function that must be called on the event


 * capture
 * true if you want to enable capture.

JSL.event.stop
Stop an event from further propogation. Taken from http://www.openjs.com/articles/prevent_default_action/

JSL.event.getTarget
Get the target of the current event