aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2023-03-23 16:13:33 +0000
committers-ol <s+removethis@s-ol.nu>2023-03-23 16:13:33 +0000
commit9546feff80de50b1b7bef6758dc8223d5da3b911 (patch)
treee27fc02bde46b56a776ceb8578030a8f10c89444 /src/app
parentUpdate README.md (#1) (diff)
downloadelectric-sudoku-9546feff80de50b1b7bef6758dc8223d5da3b911.tar.gz
electric-sudoku-9546feff80de50b1b7bef6758dc8223d5da3b911.zip
remove debug printing
Diffstat (limited to 'src/app')
-rw-r--r--src/app/sudoku.cljc13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/app/sudoku.cljc b/src/app/sudoku.cljc
index 3a8d595..db70c1b 100644
--- a/src/app/sudoku.cljc
+++ b/src/app/sudoku.cljc
@@ -120,16 +120,9 @@
difficulty (e/watch !difficulty)]
(dom/div
(dom/label (dom/props {:for "difficulty"}) (dom/text "difficulty"))
- (ui/range difficulty (e/fn [v]
- (println v)
- (reset! !difficulty v))
- ; (partial reset! !difficulty))
- (dom/props {:id "difficulty"
- :min 1
- :max 59}))
- (ui/button (e/fn [] (e/server
- (println (type difficulty))
- (reset! !state (make-sudoku difficulty))))
+ (ui/range difficulty (e/fn [v] (reset! !difficulty v))
+ (dom/props {:id "difficulty" :min 1 :max 59}))
+ (ui/button (e/fn [] (e/server (reset! !state (make-sudoku difficulty))))
(dom/text "regenerate"))))
(let [!focus (atom nil)