Skip to content

Instantly share code, notes, and snippets.

@Brybry
Created February 3, 2012 22:42
Show Gist options
  • Save Brybry/1733436 to your computer and use it in GitHub Desktop.
Save Brybry/1733436 to your computer and use it in GitHub Desktop.
Enyo Event Hooking
enyo.dispatcher.olddispatchCapture=enyo.dispatcher.dispatchCapture;
enyo.dispatcher.dispatchCapture=function (a,b) { console.log("DISPATCH CAPTURE: "+a.type+"-->"+b.id); enyo.dispatcher.olddispatchCapture(a,b); }
enyo.dispatcher.olddispatch=enyo.dispatcher.dispatch;
enyo.dispatcher.dispatch=function (a) { console.log("DISPATCH: "+a.type); enyo.dispatcher.olddispatch(a); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment