Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A WIP experimental alternate event infrastructure for YUI 3
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
pending
.gitignore
README.md
do.js
event-compat.js
event-do.js
event-dom-widget.js
event-dom.js
event-node.js
event-onload.js
event-synthetic.js
event.js
overview.txt
test.html
test_delegate.html
test_dom.html
test_dom_delegate.html
test_node.html
test_node_delegate.html

README.md

This is an experimental alternative event infrastructure that I was playing around with to test out some ideas:

  1. Publishing events at the class level (still allowing instance level publish)
  2. Using prototypal inheritance when it seemed more appropriate than subclassing
  3. Event facades that use get/set rather than direct property access
  4. Avoid the IE memory leak issue rather than use an onunload sub cleanup
  5. Conditional/generic event types: event definitions that handles multiple types (e.g. node.on("key(A-C)", fn) )
  6. N event subscription phases ("on" for DOM nodes, "on" and "after" by default for custom events, but can be more for defined events)
  7. More that I'm forgetting

Some of this is just playtime, and some of it is clearly unfinished, but there are definitely ideas and implementations in this code that I like.

Something went wrong with that request. Please try again.