Threaded View
-
23 May 2012 1:44 AM #1
Ext 4.1.1 RC1 tree node deep copy is not deep
Ext 4.1.1 RC1 tree node deep copy is not deep
The NodeInterface.copy method doesn't copy the childnodes which are deeper than level 1.
Here is the fix:
NodeInterface.js
This bug was metioned before here:Code:copy: function(newId, deep) { var me = this, //result = me.callOverridden(arguments), result = me.createNode(me.callOverridden(arguments)), len = me.childNodes ? me.childNodes.length : 0, i; // Move child nodes across to the copy if required if (deep) { for (i = 0; i < len; i++) { // result.appendChild(me.childNodes[i].copy(true)); result.appendChild(me.childNodes[i].copy(newId, deep)); } } return result; },
http://www.sencha.com/forum/showthre...ight=node+copy
This duplicates another bug already reported in our system:
EXTJSIV-6314


Reply With Quote