Merge branch 'resume-game' of github.com:mfrederiksen/2048 into mfrederiksen-resume-game

This commit is contained in:
Gabriele Cirulli
2014-03-22 15:35:51 +01:00
8 changed files with 125 additions and 28 deletions
+4
View File
@@ -68,6 +68,10 @@ KeyboardInputManager.prototype.listen = function () {
retry.addEventListener("click", this.restart.bind(this));
retry.addEventListener(this.eventTouchend, this.restart.bind(this));
var restart = document.querySelector(".restart-button");
restart.addEventListener("click", this.restart.bind(this));
restart.addEventListener("touchend", this.restart.bind(this));
var keepPlaying = document.querySelector(".keep-playing-button");
keepPlaying.addEventListener("click", this.keepPlaying.bind(this));
keepPlaying.addEventListener("touchend", this.keepPlaying.bind(this));