Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Abilene, Texas
    Posts
    17
    Vote Rating
    0
    topherfangio is on a distinguished road

      0  

    Default PR3 TabPanel - no method 'getAnimation'

    PR3 TabPanel - no method 'getAnimation'


    Hi everyone,

    I've got a mobile app that uses 1.1 and works great. Now, I'm wanting to try out 2.0 PR3 but I'm having trouble with the getting started tutorial.

    I keep getting the following error:

    Uncaught TypeError: Object [object Object] has no method 'getAnimation'

    Now, I've read this similar post, and the "fix" stops the error from being thrown, but nothing appears on the screen.

    My code is below. Any pointers as to what I am doing wrong?

    Note: the alert() and console.log() statements execute perfectly and with the "fix" there are no errors, it's just that nothing appears on the screen.

    Code:
            new Ext.Application({
              name: 'Sencha',
    
              launch: function() {
                alert('test');
    
                console.log('launch called...');
    
                Ext.create("Ext.Panel", {
                  fullscreen: true,
    
                  layout: 'fit',
    
                  cls: 'touchodo-app-container',
    
                  items: [
                    { 
                      title: 'Home',
                      iconCls: 'home',
                      html: 'Welcome'
                    }
                  ]
                });                                                                                                                                                                                                                                                                                                                                                            
              }
            });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,207
    Vote Rating
    856
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    In PR3 this will work but this may change in PR4:

    Code:
    Ext.application({
        name: 'Sencha',
    
        launch: function() {
            Ext.create("Ext.Panel", {
                fullscreen: true,
                layout: 'fit',
                cls: 'touchodo-app-container',
                items: [
                    {
                        title: 'Home',
                        iconCls: 'home',
                        html: 'Welcome'
                    }
                ]
            });
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1