Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 963 Bytes

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 (or was that parasitic?) and avoiding new
  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. That said, it's been a while since I worked on it, and I might like less of it if I took a look again (which I'd like to do).

Jump to Line
Something went wrong with that request. Please try again.