30 Mar 2012 10:19 AM #1
Unanswered: Problems in Production mode
In My application I have a file bootstrap and in this file I have written global functions and included this file in app.json as well but when I compiled my project into production I get Uncaught ReferenceError: get_data is not defined,get_data is a function written in bootstrap file, I am not sure why it is not picking up functions written in that file, it works fine in normal mode. Any type of help is appreciated.
30 Mar 2012 10:32 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
I wouldn't use global functions. I would place them in a utility method that you can require and access anywhere.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.
2 Apr 2012 5:05 AM #3
what should I do
what should I do If I wanted to use global functions ?
14 Nov 2012 8:17 PM #4