PDA

View Full Version : Ext Direct - Ext.app.REMOTING_API is undefined (4.1.1 to 4.2.1)



ssamuel68
3 Jun 2013, 12:41 PM
Hi, I was trying to migrate from 4.1.1 to 4.2.1 but I have some issues with the direct.

Now I can't use the router, cause it says my Ext.app.REMOTING_API is undefined.

My code:


Ext.require(['Ext.direct.*', 'components.MessageBox']);
Ext.onReady(function(){
Ext.Direct.addProvider(Ext.app.REMOTING_API);
});


console.log(Ext.app.REMOTING_API);


Any suggestion?

ssamuel68
3 Jun 2013, 12:54 PM
Well, I just put all the rest of the code insede the onReady


Ext.require(['Ext.direct.*', 'components.MessageBox']);
Ext.onReady(function(){
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);
...
...
...
});