mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[PALEMOON] Fix for loops in treeView.js (SyntaxError: missing ] after element list)
This commit is contained in:
parent
9052cdd14f
commit
df8efe59f4
1 changed files with 6 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue