Skip to content

Instantly share code, notes, and snippets.

@therealparmesh
Last active September 1, 2017 18:53
Show Gist options
  • Save therealparmesh/209d45b7b9cc053fc1fb to your computer and use it in GitHub Desktop.
Save therealparmesh/209d45b7b9cc053fc1fb to your computer and use it in GitHub Desktop.
Ext JS component-level event logging
Ext.onReady(function () {
Ext.define('Ext.override.eventLogging.Component', {
override: 'Ext.Component',
initComponent: function () {
var self = this
Ext.util.Observable.capture(self, function (eventName) {
console.log(eventName, self.getId(), self)
})
self.callParent(arguments)
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment