Results 1 to 7 of 7

Thread: Touch 2 PR2 Migration issues from Touch 2 PR1?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Touch Premium Member
    Join Date
    Nov 2007
    Posts
    38
    Vote Rating
    0
      0  

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •