-
-
Save FLasH3r/5764371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// to capture ALL events use: | |
Ext.util.Observable.prototype.fireEvent = | |
Ext.util.Observable.prototype.fireEvent.createInterceptor(function() { | |
console.log(this.name); | |
console.log(arguments); | |
return true; | |
}); | |
// to capture events for a particular component: | |
Ext.util.Observable.capture( | |
Ext.getCmp('my-comp'), | |
function(e) { | |
console.info(e); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment