NWEvents - Handlers, Listeners, Delegates
NWEvents 1.07 has been update on Google Code, it is at SVN 23 (20080316).
The unobtrusive way to early page enlivenment
Things that get fixed in browsers failing the W3C specs or UI usability expectations:
- the "this" keyword will always refer to the element used in the event registration
- handlers are always executed in FIFO order, they will follow the registration order
- handlers may be effectively removed both by using references and/or closures
- handlers lists are kept in private collections, so elements are not extended
- uses cloned collections to avoid runtime modifications to the running queue
- in multi document environment events are sourced from the correct window
Properties/Methods added to browsers failing the W3C specs:
- event.which
- event.target
- event.eventPhase
- event.currentTarget
- event.relatedTarget
- event.preventDefault
- event.stopPropagation
The test cases
Other test cases
Event delegation through CSS3 selector is now possible using NWMatcher.
This Event Manager was an absolute need for me in the development of this WEB application.
A complete documentation does not yet exists. Hope to be able to write it and publish as time permits.
Related works on Event Deleagtion