Threaded View
-
16 Nov 2011 9:45 AM #1
Answered: Touch 2 PR2 Migration issues from Touch 2 PR1?
Answered: Touch 2 PR2 Migration issues from Touch 2 PR1?
Has anyone tried porting their Sencha Touch 2 project from PR 1 to PR 2 and had the project stop working?
I switched over to PR2 the app never starts. Looks like while there are no JavaScript errors, the Ext.setup() call is never executed in PR2. Anyone else run into this issue?
Here is my setup code which is very straight forward. Thank you in advance.
Code:Ext.setup({ tabletStartupScreen: 'app/resources/images/tablet_startup.png', phoneStartupScreen: 'app/resources/images/phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady: function() { console.log("ON READY"); ... } });
-
Best Answer Posted by AndreaCammarata
Hi.
Actually the setup function is no more available and you can see that in the docs.
You should create your app by:
Hope this helps.Code:Ext.application({ name: 'MyApp', tabletStartupScreen: 'app/resources/images/tablet_startup.png', phoneStartupScreen: 'app/resources/images/phone_startup.png', icon: 'icon.png', glossOnIcon: false, launch: function() { console.log('LAUNCH'); } });


Reply With Quote