From 7a48c15f57a258c7a04be3aceef5fea2dcd9e214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Manchado=20Vel=C3=A1zquez?= Date: Mon, 14 Jan 2019 22:30:59 +0100 Subject: [PATCH] Fix resetting and initial die quantity --- dice/index.html | 2 +- dice/main.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dice/index.html b/dice/index.html index b1d2a8a..9957981 100644 --- a/dice/index.html +++ b/dice/index.html @@ -37,7 +37,7 @@
-
+
diff --git a/dice/main.js b/dice/main.js index 3f972dd..e9b8408 100644 --- a/dice/main.js +++ b/dice/main.js @@ -26,7 +26,8 @@ function diceInitialize(container, w, h) { $t.bind($t.id('clear'), ['mouseup', 'touchend', 'touchcancel'], function(ev) { ev.stopPropagation(); - set.value = '0'; + set.dataset.fullDieProps = ""; + set.value = ''; onSetChange(); });