Skip to content

Commit

Permalink
Merge pull request #4 from ftlabs/localdata
Browse files Browse the repository at this point in the history
Localdata
  • Loading branch information
railsagainstignorance authored Jan 11, 2017
2 parents 9c71851 + 0bc2dbb commit 2f7b78c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ const constructAll = function() {

document.removeEventListener('o.DOMContentLoaded', constructAll);
};
document.addEventListener('o.DOMContentLoaded', constructAll);
document.addEventListener('o.DOMContentLoaded', constructAll);
document.addEventListener('o.CrosswordDataUpdated', constructAll);
4 changes: 3 additions & 1 deletion src/js/oCrossword.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function buildGrid(
answers
}) {
const gridEl = rootEl.querySelector('table');
const cluesEl = rootEl.querySelector('ul.o-crossword-clues');
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

0 comments on commit 2f7b78c

Please sign in to comment.