-
24 Oct 2012 3:06 AM #1
Sencha Command - ST2 - MicroLoader error on 3g
Sencha Command - ST2 - MicroLoader error on 3g
Hi,
I have a application that updates just fine on WiFi. But when the phone are on 3G and there is an update available i get this error:
I have tried with 2.0.0.0 B3 and Sencha Cmd V3 Beta 3.0.0.190 with the same result.Code:TypeError: '3' is not a function (evaluating 's(g,c)')
-
24 Oct 2012 7:16 AM #2
I have found the problem.
After a lot of debugging my co-worker code I found that there where a for loop without 'var' and s as variable name.
So I guess when inserting/minifeing the microloader it creates a global variable named s too. Then somehow there can be timing issues when the code is run on slow connections.
Would it not be a good idea to isolate the microloader code a little better?
-
24 Oct 2012 6:58 PM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
This was in the microloader? Which one, I did not see a global s variable just looking at the source.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Oct 2012 11:18 PM #4
Hi,
The minified microloader that replaces
in index.html when building has s I think it might be a function but I am not sure, its hard to read minified code.Code:<script id="microloader" type="text/javascript" src="sdk/microloader/production.js"></script>
-
25 Oct 2012 4:13 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Yeah but you can find that file unminified if you look at the microloader directory in the 2.1.0 RC2 release.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote