JavaScript/Notes/DomEvents

From Noisebridge
< JavaScript
Revision as of 14:56, 1 November 2013 by Garrett (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

[edit] Dom Event Publisher

var DomEventPublisher = {
  get(src, sEvent); // Static.
  addCallback(o, type, cb);
  removeCallback(o, type, cb, useCapture); 
  purgeEvents(obj, eventOrList);
}

[edit] Cross-browser DomEvent Adapter

var DomEvent = {
  getTarget : getTarget,
  getRelatedTarget : getRelatedTarget,
  preventDefault : preventDefault,
  stopPropagation : stopPropagation,
}
Personal tools