I was facing a problem with my application whit the production version on browser. An error occurred because I was adding in my app.js file an 'Ext.data.proxy.Ajax' in the requires section.
It took me over 4 hours to figure out that the problem was that the file is already included in Sencha Touch by default. What led me to investigate other packages that I had added.
One strange thing I noticed is that, despite the AjaxProxy package come already loaded by default, LocalStorage don't. As the Ext.device.Connection.
I removed the three, run a build production, and noticed the first inconsistency.
In the development version (http://localhost/myapp/) only ajax package is available through the Google Chrome console by typing 'Ext.data.proxy.Ajax'.
But LocalStorage and Ext.device.Connection are not.
However, the production version (http://localhost/myapp/build/production/myapp/) all 3 are available.
I made a new clean application using the Sencha Cmd (latest version) and then I run a build production. In the development version, I can't access the proxy inside the data package and neither Ext.device.
But in the production version is possible to access the Ext.data.proxy.Ajax but not LocalStorage and Ext.device not too.
Then come the questions:
Why is there this difference between the development version and the production version?
Which packages loaded by default in Sencha Touch that is not needed to add the requires section?
Thank you.
Some inconsistencies with Sencha Touch 2.4.1
Aucun commentaire:
Enregistrer un commentaire