summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend/framework
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2007-02-14 04:13:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:11 -0500
commitecfbc670c2a641b1f18155af0ed9a6e49278185a (patch)
treec7d17d203291487a6444184b0424426617be7c32 /webapps/qooxdoo-0.6.5-sdk/frontend/framework
parent4dbf4e1917e9b8cb611df82fa96bf65fb077d5cd (diff)
downloadsamba-ecfbc670c2a641b1f18155af0ed9a6e49278185a.tar.gz
samba-ecfbc670c2a641b1f18155af0ed9a6e49278185a.tar.bz2
samba-ecfbc670c2a641b1f18155af0ed9a6e49278185a.zip
r21325: delete children in reverse order since the array is manipulated during the recursive delete
(This used to be commit 4ee68f55da5446ebd44173bd2f67056cd6502e1b)
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework')
-rw-r--r--webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js
index 875eeea6ec..90e8ef5c80 100644
--- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js
+++ b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/treevirtual/SimpleTreeDataModel.js
@@ -419,7 +419,7 @@ qx.Proto.addLeaf = function(parentNodeId,
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);
}