24 Oct 2012 12:22 PM #1
Ext.Loding loading order in 2.1rc2
I have created a singleton class that has some methods. When in development the loading order works fine because my application works without errors.
However when I build the app for production I get a "TypeError: Cannot call method of undefined" which is for a method in that singleton class. That tells me that the class is being loaded out of order. Is this a Touch 2.1rc2 bug?
24 Oct 2012 2:18 PM #2
This is probably not with Ext.Loading but with the latest version of Sencha Cmd v126.96.36.199. When the application is build it seems the concatenation order is not correct. The class being loaded is in a require option in Ext.application. But I am unsure of a fix or if this is a bug.
24 Oct 2012 2:43 PM #3
26 Oct 2012 6:03 AM #4
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The order is correct, it's just done differently. In the old Command the order wasn't stable which would result in massive delta updates as technically large chunks of code changed but in reality they didn't. So if a class requires another class, regardless if that required class is required else where, that class needs to require the other class.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.