Skip to content

Commit

Permalink
Merge pull request #5 from ftlabs/localdata
Browse files Browse the repository at this point in the history
removed previous attempt to reset grid
  • Loading branch information
railsagainstignorance authored Jan 12, 2017
2 parents 2f7b78c + 0a8ae40 commit 342c8bb
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 342c8bb

Please sign in to comment.