Hybrid 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
-
25 May 2012 1:24 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Thanks for the report.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
16 Aug 2012 4:30 AM #3
any news on this?
it is really annoying to change that code in every release.
-
22 Oct 2012 12:58 PM #4
Note that this method also has to be changed in NodeInterface.getPrototypeBody() if you are going to be decorating models as Nodes!
This duplicates another bug already reported in our system:
EXTJSIV-6314


Reply With Quote