View Full Version : SDK-tools create jsb don't parse my app files.

30 Jun 2011, 4:20 AM
When creating a jsb file:

sencha create jsb -a http://localhost/dev/index.php -p app.jsb3

Of an MVC application with in index.php:

<script type="text/javascript" src="ext-4.0.2a/ext.js"></script>
<script type="text/javascript" src="app.js"></script>

The generated app.jsb contains the Ext library js files, but not my app files except from app.js

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
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.