This is needed on Safari 9, used on the iPad 2.
tileDest.appendChild(movingTile);
if (isParentOf(board, tileDest)) {
- for (const tile of board.getElementsByClassName("tile-highlight")) {
+ for (const tile of [].slice.call(board.getElementsByClassName("tile-highlight"))) {
tile.classList.remove("tile-highlight");
}
}
}
trivabble.applyL10n = function () {
- for (const node of document.querySelectorAll("[data-l10n]")) {
+ for (const node of [].slice.call(document.querySelectorAll("[data-l10n]"))) {
if (node.dataset.l10n === "text-content") {
node.textContent = _(node.textContent.trim());
} else {