From faf3884a6b31a2208ae6f96f801fddf7e2538df0 Mon Sep 17 00:00:00 2001 From: NTD Date: Mon, 9 Apr 2018 07:28:09 -0400 Subject: [PATCH] [PALEMOON] Fix for loops in grid.js (included into newTab.js) (SyntaxError: missing ] after element list) --- application/palemoon/base/content/newtab/grid.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/palemoon/base/content/newtab/grid.js b/application/palemoon/base/content/newtab/grid.js index 37559a0631..3b7dfc35fd 100644 --- a/application/palemoon/base/content/newtab/grid.js +++ b/application/palemoon/base/content/newtab/grid.js @@ -109,7 +109,12 @@ let gGrid = { // (Re-)initialize all cells. let cellElements = this.node.querySelectorAll(".newtab-cell"); - this._cells = [new Cell(this, cell) for (cell of cellElements)]; + // Tycho: this._cells = [new Cell(this, cell) for (cell of cellElements)]; + this.cells = []; + + for (let cellItem of cellElements) { + this.cells.push(new Cell(this, cellItem)); + } }, /**