Hi,
I would like to reload portion of my application without having to refresh it completely.
In order to do this I use a Ajax request to load the code (classes) and evaluate it.
The problem is that the Ext.define doesn't work if you try to "redefine" the same class.
For instance if I load the following class:
Code:
Ext.define('Test.namespace.MyClass', {
extend: 'Ext.Base',
sayHello: function() {
Ext.Msg.alert('say hello');
}
});
This is working the first time, but if I reload it a second time this is not working.
How could I do to "undefine" or "unload" a class in order to be able to reload it.
Best regards
Daniel