Fixed total check, batch period and regenerated puzzle.
This commit is contained in:
4
app.js
4
app.js
@@ -254,7 +254,7 @@ App.PuzzleView = Backbone.View.extend({
|
||||
intervalID: null,
|
||||
guessing: false,
|
||||
count: 0,
|
||||
total: 7,
|
||||
total: 0,
|
||||
puzNum: 0,
|
||||
data: null,
|
||||
|
||||
@@ -307,6 +307,8 @@ App.PuzzleView = Backbone.View.extend({
|
||||
|
||||
this.data = puzzles[puzNum];
|
||||
|
||||
this.total = puzzles[puzNum]['clues'].length;
|
||||
|
||||
var tpl = $('.puzzleTemplate').text();
|
||||
var html = _.template(tpl, this.data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user