EventRunner is a utility object that will handle Event with jQuery.data(). All mehtods/properties exist STATIC on EventRunner object.
MIT-style license.
Takashi Mizohata beatak@nydd.org
2008 [nydd](http://code.nydd.org/).
| EventRunner.js | EventRunner is a utility object that will handle Event with jQuery.data(). |
| Variables | |
| MAX_DEPTH | Maximum depth for ascending dom tree when the event performs. |
| Functions | |
| ascendEvent | if the given elm has event, will perform, otherwise ascend DOM tree recursively. |
| perform | Thie will execute the method or return values which are associated with the given element and event. |
| receiveEvent | If currentTarget is propery set (in Firefox and Safari), will execute the method right away, if not (in IE) will ascend DOMNode recursively. |
| register | Wrapping event dispatching into EventRunner framwork. |
| scope | will return fixed context for given function. |
EventRunner.perform = function ( elm, ev )
Thie will execute the method or return values which are associated with the given element and event.
| elm | (DOMNode) |
| ev | (DOMEvent) |
(*) Object if the event method found and executed, or variable associated with the given event, or false if nothing is associated with the given event
Maximum depth for ascending dom tree when the event performs.
EventRunner.MAX_DEPTH
if the given elm has event, will perform, otherwise ascend DOM tree recursively.
EventRunner.ascendEvent = function ( ev, elm, counter )
Thie will execute the method or return values which are associated with the given element and event.
EventRunner.perform = function ( elm, ev )
If currentTarget is propery set (in Firefox and Safari), will execute the method right away, if not (in IE) will ascend DOMNode recursively.
EventRunner.receiveEvent = function ( ev )
Wrapping event dispatching into EventRunner framwork.
EventRunner.register = function ( dom, type, func, context )
will return fixed context for given function.
EventRunner.scope = function ( target, func )