All the ExtJS documentation and examples I have read suggest calling superclass methods like this:
MyApp.MyPanel = Ext.extend(Ext.Panel, {
initComponent: f
You could use this little known Javascript feature (arguments.callee):
MyApp.MyPanel = Ext.extend(Ext.Panel, {
constructor: function() {
// Do your thing
this.thing = 1;
// Call super
arguments.callee.superclass.constructor.apply(this, arguments);
}
});
see MDC documentation
Edit: Actually, this isn't going to work with initComponent because it isn't the constructor. I always override the constructor, personally (despite what Ext JS examples suggest). Will continue to think about this one a bit.