changeset 187:9520465a9c60

Take proper name for reset action.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 07 Aug 2016 23:17:47 +0300
parents dbf2da029e02
children 754796e567ab
files 2048.html
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/2048.html	Sun Aug 07 23:14:11 2016 +0300
+++ b/2048.html	Sun Aug 07 23:17:47 2016 +0300
@@ -149,7 +149,7 @@
 
   <div id="control-area" class="area">
     <div class="control">
-      <button id="start">Start</button>
+      <button id="reset">Reset</button>
       <div class="option"><input type="checkbox" id="2048" checked> 2048</div>
       <div class="option">
         <select id="board-engine">
@@ -569,7 +569,7 @@
 
     ui.action = {};
 
-    ui.action.start = function() {
+    ui.action.reset = function() {
       ui.score.clear();
       ui.suggestion.clear();
       ui.game.clearMessage();
@@ -578,7 +578,7 @@
       board.putRandom(ui.board.position);
       ui.board.update(ui.board.position);
     }
-    document.getElementById("start").addEventListener("click", ui.action.start, false);
+    document.getElementById("reset").addEventListener("click", ui.action.reset, false);
 
     for (var i = 0; i < ui.game.dirs.length; i++) {
       var dir = ui.game.dirs[i];