From 2569bca9308968c778f750c3db23c08d95aa7230 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 9 Apr 2018 07:28:09 -0400 Subject: [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(-) (limited to 'application') diff --git a/application/palemoon/base/content/newtab/grid.js b/application/palemoon/base/content/newtab/grid.js index 37559a063..3b7dfc35f 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)); + } }, /** -- cgit v1.2.3