Ext.require and Ext.syncRequire do not work on native app packaging (with phonegap).
My code is something like:
On desktop browser it works, on real device the app hangs at startup (<blink>3 white dots</blink>).
If I switch to the classic 'require : ["MyApp.view.*"]' it works on both contexts.
I would like to use Ext.require because I'd like to load classes after some other stuff (ie translations, localstorage data) has been loaded.
Use of Ext.require and Ext.syncRequire with native app (phonegap)
My code is something like:
Code:
Ext.syncRequire("MyApp.view.*", function() {
// do other stuff
});
On desktop browser it works, on real device the app hangs at startup (<blink>3 white dots</blink>).
If I switch to the classic 'require : ["MyApp.view.*"]' it works on both contexts.
I would like to use Ext.require because I'd like to load classes after some other stuff (ie translations, localstorage data) has been loaded.
Thanks,
Marco
Use of Ext.require and Ext.syncRequire with native app (phonegap)
Aucun commentaire:
Enregistrer un commentaire