Hi,
The class is definitely loaded and defined but the myFunction function isn't added to the static methods available on the defined model classes as it was in 4.2. Is this possible with v5 or is there a different way I should be doing it?
Overriding Inheritable Statics
I'm just starting an Ext JS 5 upgrade from 4.2 and have hit a problem with an override I have, adding some static methods to the Model class. The basic code is below:
Code:
Ext.define('MyApp.override.data.Model', {
override: 'Ext.data.Model',
inheritableStatics: {
myFunction: function(){
}
}
});
The class is definitely loaded and defined but the myFunction function isn't added to the static methods available on the defined model classes as it was in 4.2. Is this possible with v5 or is there a different way I should be doing it?
Thanks
Stuart
Overriding Inheritable Statics
Aucun commentaire:
Enregistrer un commentaire