You found a bug! We've classified it as EXTJSIV-8495 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Helsingborg, Sweden
    Posts
    2,455
    Vote Rating
    50
    mankz is a jewel in the rough mankz is a jewel in the rough mankz is a jewel in the rough

      1  

    Default [4.2 nightlies] TreeStore nodeHash created too late

    [4.2 nightlies] TreeStore nodeHash created too late


    Code:
    Ext.define('M', {
       extend : 'Ext.data.Model'
    })
    
    var ts = new Ext.data.TreeStore({
                 model : 'M',
                proxy : {
                    type : 'memory',
                    data : [
                        { id : 123 }
                    ]
                }
            });
            
            
    ts.getById(123).id;
    => this.nodeHash is undefined

    This worked fine in 4.1.x, 4.2.0.265. Setting an empty root in the store config 'solves' it...

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.