JavaScript/Notes/DomEvents

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

Jump to: navigation, search

Dom Event Publisher

var DomEventPublisher = {
  get(src, sEvent); // Static.
  addCallback(o, type, cb);
  removeCallback(o, type, cb, useCapture); 
  purgeEvents(obj, eventOrList);
}
 
=== Cross-browser DomEvent Adapter ===
<source lang="javascript">
var DomEvent = {
  getTarget : getTarget,
  getRelatedTarget : getRelatedTarget,
  preventDefault : preventDefault,
  stopPropagation : stopPropagation,
}

</source>

Personal tools