Skip to content

Instantly share code, notes, and snippets.

@pherris
Created October 17, 2014 17:53
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 pherris/1fa912378422f9c698be to your computer and use it in GitHub Desktop.
Save pherris/1fa912378422f9c698be to your computer and use it in GitHub Desktop.
Ext Component - log events
(function() {
var Ext = window.Ext4 || window.Ext;
Ext.define('Rally.ui.overrides.Container', {
override: 'Ext.Container',
constructor: function (config) {
if (!config) {
config = {};
}
if (!config.listeners) {
config.listeners = {};
}
config.listeners.afterrender = function () {
Ext.log('afterlayout of: ' + this.$className, (this.getEl && this.getEl() && this.getEl().id) ? this.getEl().id : 'no id');
};
return this.callParent([config]);
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment