Skip to content

Instantly share code, notes, and snippets.

@mchail
Created February 21, 2012 03:10
Show Gist options
  • Save mchail/1873326 to your computer and use it in GitHub Desktop.
Save mchail/1873326 to your computer and use it in GitHub Desktop.
Log all Ext events
javascript:(
function() {
var o = Ext.util.Observable.prototype;
o.fireEvent = o.fireEvent.createInterceptor(function(evt) {
var a = arguments;
console.log(this, ' fired event ', evt, ' with args ', Array.prototype.slice.call(a,1,a.length));
});
}
)();
@mchail
Copy link
Author

mchail commented Feb 21, 2012

Save as a bookmarklet and run it on a page that uses ExtJS. All Ext events will be logged to the javascript console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment