JavaScript/Notes/DomEvents

From Noisebridge
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