-
30 Jun 2011 4:20 AM #1
SDK-tools create jsb don't parse my app files.
SDK-tools create jsb don't parse my app files.
When creating a jsb file:
Of an MVC application with in index.php:Code:sencha create jsb -a http://localhost/dev/index.php -p app.jsb3
The generated app.jsb contains the Ext library js files, but not my app files except from app.jsCode:<script type="text/javascript" src="ext-4.0.2a/ext.js"></script> <script type="text/javascript" src="app.js"></script>
When looking in firebug I see the Ext files loaded through XHR requests while my app files are loaded through "DOM inserts". Checking Ext.Loader.history gives all my app files.
Anybody knows what I'm doing wrong?
-
1 Jul 2011 4:46 AM #2
I faced a similar problem, hope my work around solves your problem as well.
If you are launching your application by calling "Ext.application({});", try changing it to "Ext.create('Ext.app.Application', {})". If that doesn't solve your problem, have explicit Ext.require([]); (pass your application "requires" property value here - add the controllers also) invocation before instantiating the application object.
Hope that helps.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote