From 0a8ae403ba014cc4b7e6427443cbab7ff4e1967d Mon Sep 17 00:00:00 2001 From: Chris Gathercole Date: Thu, 12 Jan 2017 10:04:57 +0000 Subject: [PATCH] removed previous attempt to reset grid --- src/js/oCrossword.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/js/oCrossword.js b/src/js/oCrossword.js index c567ab8..07a93b7 100644 --- a/src/js/oCrossword.js +++ b/src/js/oCrossword.js @@ -26,9 +26,7 @@ function buildGrid( answers }) { const gridEl = rootEl.querySelector('table'); - gridEl.innerHTML = ""; const cluesEl = rootEl.querySelector('ul.o-crossword-clues') - cluesEl.innerHTML = ""; const {cols, rows} = size; for (let i=0; i buildGrid(rootEl, json)) .then(() => this.assemble() ); } - } else { - this.assemble(); } } }