Hi Evan,
one more thing i noticed.
Newly defined class gets really defined after some time, in my case 50 ms.
example:
Code:
Ext.define('ABC',{
requires: [
'WS.view.shop.Producteditor' /* this is just some view, prosume it is Ext.panel.Panel and it is not loaded yet to client but it should loaded when needed */
],
views: [
'WS.view.shop.Producteditor'
],
extend: 'WS.inc.Controller'
});
console.log(Ext.isDefined(ABC)); // this fails, because ABC is somehow not defined
Ext.Function.defer(function(){console.log(Ext.isDefined(ABC));}, 50); //here, after 50ms, ABC is defined and i can use it
As i understand, when Loader comes to dependencies it goes to Synchronous mode and tries to load all dependencies, so i don't understand why ABC is not ready to use just after defining it, but only after some time elapsed (in my case 50 ms)
Can you please advise me?