changeset 159:2709c9ff04f0

Fix: preventDefault() forbid checking checkbox.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 07 Jun 2015 12:30:26 +0300
parents 896cd3541ece
children 93c44d730198 4579c59e7e6b
files 2048.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/2048.html	Wed Jan 07 19:58:44 2015 +0200
+++ b/2048.html	Sun Jun 07 12:30:26 2015 +0300
@@ -359,7 +359,7 @@
     ui.board = {};
     ui.board.val2048Dom = document.getElementById('2048');
     ui.board.val2048Dom.addEventListener("click", function(event) {
-      event.preventDefault(); event.stopPropagation();
+      event.stopPropagation();
       ui.board.update(ui.board.position);
       localStorage.val2048 = ui.board.val2048Dom.checked;
       event.target.blur();