Object | +--YAHOO.ext.EventManager
| Field Summary | |
Object |
ieDeferSrc
|
| Method Summary * Parameter types in italic indicate optional parameters | |
Function
|
addListener(<Object> element, <String> eventName, <Function> fn, <Object> scope, <boolean> override)
Appends an event handler |
Function
|
on(<Object> element, <String> eventName, <Function> fn, <Object> scope, <boolean> override)
Appends an event handler (shorthand for addListener) |
void
|
onDocumentReady(fn, scope, override)
Fires when the document is ready (before onload) |
Boolean
|
removeListener(<Object> element, <String> eventName, <Function> wrappedFn)
Removes an event handler |
Object
|
wrap(fn, scope, override)
Places a simple wrapper around an event handler to override the browser event object with a YAHOO.ext.EventObject |
| Field Detail |
Object ieDeferSrc
| Method Detail |
Function addListener(<Object> element, <String> eventName, <Function> fn, <Object> scope, <boolean> override)
element - The html element to assign the event to
eventName - The type of event to append
fn - The method the event invokes
scope - An arbitrary object that will be passed as a parameter to the handler
override - If true, the obj passed in becomes the execution scope of the listener
Function on(<Object> element, <String> eventName, <Function> fn, <Object> scope, <boolean> override)
element - The html element to assign the event to
eventName - The type of event to append
fn - The method the event invokes
scope - An arbitrary object that will be passed as a parameter to the handler
override - If true, the obj passed in becomes the execution scope of the listener
void onDocumentReady(fn, scope, override)
Boolean removeListener(<Object> element, <String> eventName, <Function> wrappedFn)
element - The html element to remove the event from
eventName - The type of event to append
wrappedFn - The wrapper method returned when adding the listener
Object wrap(fn, scope, override)