Utils.event
A module containing various methods to add and remove event listeners, bind and unbind event handlers and retrieve an Event object.
Utils.event.addWindowListener
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that adds an event listener to a Window
object, utilising one of two available event models.
Window
object.
Return value: undefined
Utils.event.addDocumentListener
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that adds an event listener to a Document
node-like object,
utilising one of two available event models.
Document
node-like object
object.
Return value: undefined
Utils.event.addElementListener
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that adds an event listener to an Element
node-like object,
utilising one of two available event models.
Element
node-like object
object.
Return value: undefined
Utils.event.removeWindowListener
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that removes an event listener to a Window
object, utilising one of two available event models.
Window
object.
Return value: undefined
Utils.event.removeDocumentListener
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that removes an event listener to a Document
node-like object,
utilising one of two available event models.
Document
node-like object
object.
Return value: undefined
Utils.event.removeElementListener
Warning: this property will return null
if the host environment is detected to be unsuitable;
an if
block or a similar construct should
be used for detection.
Method that adds an event listener to an Element
node-like object,
utilising one of two available event models.
Element
node-like object
object.
Return value: undefined
Utils.event.getObject
Method that retrieves the event object for the
specified Event
object.
Return value: Object
Utils.event.getTarget
Method that retrieves the EventTarget
object
that dispatched the event for the specified Event
object.
Return value: Object
Utils.event.bindHandler
Method that closes over the specified event handler with a closure,
and calls the specified event handler with a specific custom value for
the this
keyword.
this
keyword.
Return value: Function
Utils.event.unbindHandler
Method that removes a closure from the specified event handler.
Return value: Function
Utils.event.handlers
Object that stores both the unbound and bound forms of event handlers utilised in the module's handler methods.
Utils.event.these
Object that stores the custom this
keyword values
utilised in the module's handler methods.