2048.html
changeset 16 ab283d2534db
parent 15 0fa97e430a9e
child 17 06ad7999b9f6
--- a/2048.html	Mon Sep 08 00:14:21 2014 +0300
+++ b/2048.html	Mon Sep 08 00:18:13 2014 +0300
@@ -122,7 +122,7 @@
     ui.board = {};
     /* 'val' typesafe.  */
     ui.board.set = function(i, j, val) {
-      if (typeof val !== number)
+      if (typeof val !== 'number')
         val = 0;
       var dom = boardDom.querySelectorAll("tr")[i].querySelectorAll("td")[j];
       if (0 < val && val < 15) {