diff options
Diffstat (limited to 'demos/declarative/snake/content/snake.js')
-rw-r--r-- | demos/declarative/snake/content/snake.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/declarative/snake/content/snake.js b/demos/declarative/snake/content/snake.js index 2a99aa8..837b82a 100644 --- a/demos/declarative/snake/content/snake.js +++ b/demos/declarative/snake/content/snake.js @@ -39,7 +39,7 @@ function startNewGame() return; } - if (heartbeat.running) { + if (activeGame) { endGame(); startNewGameTimer.running = true; return; @@ -93,7 +93,7 @@ function startNewGame() function endGame() { - heartbeat.running = false; + activeGame = false; for(var i in snake) snake[i].dying = true; if (cookie) { |