What's the difference between these 2 override
So option 1:
Ext.window.Window.override({
initComponent: function () {
this.draggable = false;
this.resizable = false;
this.on('resize', function () {
this.center();
});
this.callParent();
}
});
option 2:
Ext.define('Ext.window.WindowOverride', {
override: 'Ext.window.Window',
initComponent: function () {
this.draggable = false;
this.resizable = false;
this.on('resize', function () {
this.center();
});
this.callParent();
}
});
Which approach should I follow and why?
Specifically using Extjs 4.1.1