Event

Description

Abstracts the DOM Event differences between browsers.

stop( e )

Stops event propagation


stopObserving( elem, name, function, useCapture )

Stops observing the named event of the element and removes the callback function.


isLeftClick( e )

Returns true if the left mouse butten was clicked.


unloadCache( )

Flushes the event observer cache.


observe( elem, name, function, useCapture )

Starts observing the named event of the element and specifies a callback function.


element( e )

Returns the element of the event.


pointerX( e )

Returns the mouse cursor x -coordinate of the event.


pointerY( e )

Returns the mouse cursor y -coordinate of the event.


Other Singleton Members

KEY_HOME = 36


KEY_DELETE = 46


observers = false

List of event observers


KEY_ESC = 27


KEY_BACKSPACE = 8

List of ASCII "special characters":


KEY_TAB = 9


KEY_UP = 38


KEY_DOWN = 40


KEY_END = 35


KEY_RIGHT = 39


KEY_LEFT = 37


KEY_RETURN = 13


KEY_PAGEDOWN = 34


KEY_PAGEUP = 33