summaryrefslogtreecommitdiff
path: root/webapps/qooxdoo-0.6.5-sdk/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend')
-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);
}