Threaded View

  1. #1
    Touch Premium Member
    Join Date
    Nov 2007
    Posts
    38
    Vote Rating
    0
    knifegun is on a distinguished road

      0  

    Default 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");
                ...
            }
        });

  2. Hi.
    Actually the setup function is no more available and you can see that in the docs.
    You should create your app by:

    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');
         }
    });
    Hope this helps.

Thread Participants: 1