diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-04-05 07:26:12 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-04-05 07:26:12 -0400 |
commit | fef521cb6ace0d958bcbf27f3253c25fedc57188 (patch) | |
tree | 1c830dc00159f818463641a7a916a13be1705b2d /application/palemoon/components/places/content | |
parent | 99889f4cc62ffce222be79255ff3d75a8b8ccc28 (diff) | |
download | UXP-fef521cb6ace0d958bcbf27f3253c25fedc57188.tar UXP-fef521cb6ace0d958bcbf27f3253c25fedc57188.tar.gz UXP-fef521cb6ace0d958bcbf27f3253c25fedc57188.tar.lz UXP-fef521cb6ace0d958bcbf27f3253c25fedc57188.tar.xz UXP-fef521cb6ace0d958bcbf27f3253c25fedc57188.zip |
[PALEMOON] Fix for loops in treeView.js (SyntaxError: missing ] after element list)
Diffstat (limited to 'application/palemoon/components/places/content')
-rw-r--r-- | application/palemoon/components/places/content/treeView.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application/palemoon/components/places/content/treeView.js b/application/palemoon/components/places/content/treeView.js index c1879aacf..aba731470 100644 --- a/application/palemoon/components/places/content/treeView.js +++ b/application/palemoon/components/places/content/treeView.js @@ -144,7 +144,12 @@ PlacesTreeView.prototype = { // A node is removed form the view either if it has no parent or if its // root-ancestor is not the root node (in which case that's the node // for which nodeRemoved was called). - let ancestors = [x for (x of PlacesUtils.nodeAncestors(aNode))]; + // Tycho: let ancestors = [x for (x of PlacesUtils.nodeAncestors(aNode))]; + let ancestors = []; + for (let x of PlacesUtils.nodeAncestors(aNode)) { + ancestors.push(x); + } + if (ancestors.length == 0 || ancestors[ancestors.length - 1] != this._rootNode) { throw new Error("Removed node passed to _getRowForNode"); |