-
28 Nov 2011 6:50 AM #1
Ext.require vs Ext.class.requires
Ext.require vs Ext.class.requires
It has been said often in here that the SDK tools need files to use the "uses" or "require" statements. Can we also use the Ext.class.requires array? http://docs.sencha.com/ext-js/4-0/#!...s-cfg-requires
I have preferred using these over the Ext.require statement. It seems cleaner. Do I need to switch to using Ext.require?
-
28 Nov 2011 6:57 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
You should definitely use the requires/uses throughout your application files. This tells the SDK tools what order to build the jsb3 file. Placing classes in the requires property says that those classes need to be defined before this class is defined. uses says that those classes need to be defined before this class is instantiated.
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.
-
28 Nov 2011 7:22 AM #3
Thanks for the reply. Now given that I am using Ext.class.requires, do I also need to use Ext.require?
-
28 Nov 2011 7:27 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,118
- Vote Rating
- 453
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.
-
29 Mar 2012 9:41 AM #5
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote