Reputation: 2235
I have read through the migration guide, and I understand how to migrate Ext.extend for things like:
namespace.newClass = Ext.extend(Ext.Panel,overrides);
How does one migrate something (which I've done commonly and is found commonly) that looks like:
namespace.newClass = function(arguments){
Do some stuff;
};
Ext.extend(namespace.newClass,Ext.Panel,overrides);
Upvotes: 0
Views: 396
Reputation: 30082
Something like this:
Ext.define('MyApp.foo.MyClass', {
extend: 'MyApp.bar.OtherClass',
constructor: function(){
// Call parent ctor if required
this.callParent(arguments);
},
otherMethod: function() {
}
});
Upvotes: 3