Extending Components

When extending classes that inherit from Ext.Component you can follow a specialized pattern which allows you to omit the constructor's definition.

Ext will:

CustomWindow = Ext.extend(Ext.Window, {
	initComponent : function() {
		CustomWindow.superclass.initComponent.call(this);
	},
	newMethod: function() {},
	overridenMethod: function() {}
});
Ext.reg('customwindow', CustomWindow);