svn commit: samba r21325 - in branches/SAMBA_4_0/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual: .

derrell at samba.org derrell at samba.org
Wed Feb 14 04:13:46 GMT 2007


Author: derrell
Date: 2007-02-14 04:13:46 +0000 (Wed, 14 Feb 2007)
New Revision: 21325

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21325

Log:
delete children in reverse order since the array is manipulated during the recursive delete
Modified:
   branches/SAMBA_4_0/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js


Changeset:
Modified: branches/SAMBA_4_0/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js
===================================================================
--- branches/SAMBA_4_0/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js	2007-02-14 02:37:14 UTC (rev 21324)
+++ branches/SAMBA_4_0/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js	2007-02-14 04:13:46 UTC (rev 21325)
@@ -419,7 +419,7 @@
 qx.Proto.prune = function(nodeId, bSelfAlso)
 {
   // First, recursively remove all children
-  for (var i = 0; i < this._nodeArr[nodeId].children.length; i++)
+  for (var i = this._nodeArr[nodeId].children.length - 1; i >= 0; i--)
   {
     this.prune(this._nodeArr[nodeId].children[i], true);
   }



More information about the samba-cvs mailing list