Class Event
Object
|
+--Event
- class
Event
Field Summary |
<static> Object |
_stop
Replace prototype.js's Event.stop()
to allow firing of onstop handlers. |
<static> Object |
_tostop
|
Method Summary |
<static> void
|
nostop(fn)
Un-registers callback function
to be called when Event.stop() is invoked.
|
<static> void
|
onstop(fn)
Registers callback function
to be called when Event.stop() is invoked
(but before the event is actually canceled).
|
<static> Object
|
raise(element, name)
Raises the named event on the specified element.
|
<static> void
|
stop(event)
|
<static> void
|
waitUntilDOMContentLoaded(fn, ms)
Calls fn when dom content is loaded, or if dom content is already loaded, after a timeout.
|
<static> void
|
waitUntilLoaded(fn, ms)
Calls fn when window is loaded, or if window is already loaded, after a timeout.
|
_stop
<static> Object _stop
Replace prototype.js's Event.stop()
to allow firing of onstop handlers.
_tostop
<static> Object _tostop
nostop
<static> void nostop(fn)
Un-registers callback function
to be called when Event.stop() is invoked.
Parameters:
fn
- Function to be unregister.
onstop
<static> void onstop(fn)
Registers callback function
to be called when Event.stop() is invoked
(but before the event is actually canceled).
This function will be passed the event
object as its first argument (ie myfunction(event)).
Parameters:
fn
- Function to be called when Event.stop() is invoked.
raise
<static> Object raise(element, name)
Raises the named event on the specified element.
Parameters:
element
- DOM element object or id.
name
- Event name (ie 'click' or 'submit', etc.).
Returns:
True if the event was fired sucessfully, false if event was canceled.
stop
<static> void stop(event)
waitUntilDOMContentLoaded
<static> void waitUntilDOMContentLoaded(fn, ms)
Calls fn when dom content is loaded, or if dom content is already loaded, after a timeout.
Parameters:
ms
- (optional) Milliseconds in timeout (defaults to 100).
waitUntilLoaded
<static> void waitUntilLoaded(fn, ms)
Calls fn when window is loaded, or if window is already loaded, after a timeout.
Parameters:
ms
- (optional) Milliseconds in timeout (defaults to 100).
Documentation generated by
JSDoc on Mon Aug 30 14:56:06 2021