Merge branch 'master' into gh-pages

This commit is contained in:
Gabriele Cirulli
2014-03-22 18:33:33 +01:00
+5
View File
@@ -83,7 +83,12 @@ GameManager.prototype.actuate = function () {
this.storageManager.setBestScore(this.score);
}
// Clear the state when the game is over (game over only, not win)
if (this.over) {
this.storageManager.clearGameState();
} else {
this.storageManager.setGameState(this.serialize());
}
this.actuator.actuate(this.grid, {
score: this.score,