1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default Unanswered: Nested List: Object [object Object] has no method 'getAnimation'

    Unanswered: Nested List: Object [object Object] has no method 'getAnimation'


    Hi,
    for the following code i get this error:
    Uncaught TypeError: Object [object Object] has no method 'getAnimation'


    So what's wrong? I am using ST2, PR2.



    View
    PHP Code:
    Ext.define('app.view.AlbumNestedList', {
        
    extend'Ext.NestedList',

        
    config : {
            
    layout:'fit',
            
    fullscreentrue,
            
    displayField'text',
            
    storenull,
            
    title'Yea'
        
    }
    }); 
    Controller
    PHP Code:
    Ext.define('app.controller.AlbumTree', {
        
    extend'Ext.app.Controller',

        
    requires: ['app.store.Albums'],

        
    stores: ['Albums'],

        
    views: [
            
    'AlbumNestedList'
        
    ],

        
    init: function() {
            
    this.view this.getAlbumNestedListView().create();

            
    this.albumsStore this.getAlbumsStore();
            
    this.albumsStore.load({
                
    callbackthis.onAlbumsLoad,
                
    scopethis
            
    });

            
    this.callParent(arguments);
        },

        
    onAlbumsLoad: function() {
            
    this.view.setStore(this.albumsStore);
        }
    }); 
    Store:
    PHP Code:
    Ext.define('app.store.Albums', {
        
    extend'Ext.data.TreeStore',
        
    requires'app.model.Album',
        
    model'app.model.Album',
        
    autoLoadfalse,

        
    root: {},

        
    proxy: {
            
    type'ajax',
            
    url'data/albums.json',
            
    reader: {
                
    type'json',
                
    root'items',
                
    defaultRootProperty'items'
            
    }
        }

    }); 
    Models:

    PHP Code:
    Ext.define('app.model.Album', {
        
    extend'Ext.data.Model',
        
    fields: ['id''name' ],
        
    hasMany: [
            {
    model'Image'name'images'}
        ]
    });
    Ext.define('app.model.Image', {
        
    extend'Ext.data.Model',

        
    fields: ['id''name' ],

        
    belongsTo'Album'
    }); 

  2. #2
    Sencha User
    Join Date
    Mar 2008
    Posts
    87
    Vote Rating
    0
    insnet is on a distinguished road

      0  

    Default


    Looks like this is a bug in:
    Ext.dataview.NestedList.goToNode() method

    Can s.o. move this thread over to bugs please