You found a bug! We've classified it as EXTJS-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
    Stockholm, Sweden
    Posts
    2,713
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      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
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    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


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

Thread Participants: 1