PDA

View Full Version : [FIXED] [4.0] Bug in the Ext.data.Store constructor



maksimenko
1 Nov 2011, 1:45 PM
Hello there,

The Ext.data.Store constructor has this code fragment:


...
if (proxy instanceof Ext.data.proxy.Memory) {
proxy.data = data;
me.read();
} else {
me.add.apply(me, data);
}
...


Where the line


me.add.apply(me, data);


should instead be


me.add.apply(me, [data]);


Hope it helps

EDIT: The same applies for the 4.1 preview

mitchellsimoens
2 Nov 2011, 6:28 AM
Have pushed to our bug tracker.

maksimenko
2 Nov 2011, 6:44 AM
Thanks Mitchell!


Have pushed to our bug tracker.