Skip to content

Instantly share code, notes, and snippets.

@rattanchauhan
Created September 26, 2017 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rattanchauhan/8c663c915bed7c46ca0854163c858023 to your computer and use it in GitHub Desktop.
Save rattanchauhan/8c663c915bed7c46ca0854163c858023 to your computer and use it in GitHub Desktop.
Sencha event logger
(function() {
// No mouse version
Ext.Component.prototype.fireEvent =
Ext.Function.createInterceptor(Ext.Component.prototype.fireEvent, function() {
if (arguments && arguments[0].indexOf("mouse") === -1 && arguments[0] != "uievent") {
console.log(this.$className, arguments, this);
}
return true;
});})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment