PDA

View Full Version : Error in Ext.data.Model in 4.1.3



zzhouag
26 Apr 2013, 2:35 AM
In my tree, I want to append node which contains children to parent(use appendChild(node)), the first time it works correctly.
But if I want to use the same node to append more times, something going wrong, the nodes are appended but missing their children, just an empty folder.
I think the image below will help you to understand what I said more easy,

something wrong:
43374

And I founded in Ext.define('Ext.data.Model', {... , in constructor function, if I change

me.raw = raw || data; //in 4.1.3
to

me.raw = raw; //in 4.1.0

I got what I want as below,
43375
I don't know why, thank you

slemmon
29 Apr 2013, 1:29 PM
Do you happen to see the same error if you use version 4.2 of the framework (or even 4.2.1 Beta)?

zzhouag
29 Apr 2013, 9:30 PM
Yeah, I tried 4.2 and 4.2.1 beta, the same error happen