[PALEMOON] Fix for loops in grid.js (included into newTab.js)

(SyntaxError: missing ] after element list)
This commit is contained in:
NTD 2018-04-09 07:28:09 -04:00 committed by Roy Tam
commit faf3884a6b

View file

@ -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));
}
},
/**