Skip to content

Commit

Permalink
removed previous attempt to reset grid
Browse files Browse the repository at this point in the history
  • Loading branch information
railsagainstignorance committed Jan 12, 2017
1 parent 0bc2dbb commit 0a8ae40
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/js/oCrossword.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<rows; i++) {
const tr = document.createElement('tr');
Expand Down Expand Up @@ -138,8 +136,6 @@ function OCrossword(rootEl) {
.then(json => buildGrid(rootEl, json))
.then(() => this.assemble() );
}
} else {
this.assemble();
}
}
}
Expand Down

0 comments on commit 0a8ae40

Please sign in to comment.