Class Index | File Index

Classes


Namespace aV.Events

Represents the namespace, aV.Events, for creating and managing event handler queues for any element.
Defined in: aV.main.events.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Represents the namespace, aV.Events, for creating and managing event handler queues for any element.
Method Summary
Method Attributes Method Name and Description
<static>  
aV.Events.add(element, type, handler)
Adds the given event handler to element's the on-type event's event handler queue.
<static>  
aV.Events.clear(element)
Clears all the event handlers attached to the given element.
<static>  
aV.Events.fix(event)
Adds W3C standard event methods and properties to an IE non-standard event object
<static>  
aV.Events.remove(element, type, handler)
Removes the given event handler from element's the on-type event's event handler queue.
Namespace Detail
aV.Events
Represents the namespace, aV.Events, for creating and managing event handler queues for any element.
Method Detail
<static> {Function(EventObject)} aV.Events.add(element, type, handler)
Adds the given event handler to element's the on-type event's event handler queue.
function resizeAlert(e)
{
	alert("You have resized the window!");
}
aV.Events.add(window, "resize", resizeAlert);
Parameters:
{Object} element
The element which the event handler will be added
{String} type
The name of the event without the "on" prefix
{Function(EventObject)} handler
The event handler function
Returns:
{Function(EventObject)} The assigned function

<static> aV.Events.clear(element)
Clears all the event handlers attached to the given element.
Parameters:
{Object} element

<static> {EventObject} aV.Events.fix(event)
Adds W3C standard event methods and properties to an IE non-standard event object
Parameters:
{EventObject} event
The IE non-standard event object
Returns:
{EventObject} The event object which supports W3C standard event methods

<static> aV.Events.remove(element, type, handler)
Removes the given event handler from element's the on-type event's event handler queue.
aV.Events.remove(window, "resize", resizeAlert);
Parameters:
{Object} element
The element which the event handler will be removed
{String} type
The name of the event without the "on" prefix
{Function(EventObject)} handler
The event handler function

Documentation generated by JsDoc Toolkit 2.0.1 on Sun Aug 03 2008 14:14:38 GMT+0300 (EEST)