Created
October 17, 2014 17:53
-
-
Save pherris/1fa912378422f9c698be to your computer and use it in GitHub Desktop.
Ext Component - log events
This file contains hidden or 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
(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