File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 8
8
:dependencies [[org.clojure/clojure " 1.7.0" ]
9
9
[org.clojure/clojurescript " 1.7.228" ]
10
10
[prismatic/dommy " 0.1.2" ]
11
- [jayq " 2.5.4" ]
12
- [org.clojure/core.async " 0.2.374" ]]
11
+ [jayq " 2.5.4" ]]
13
12
14
13
:plugins [[lein-cljsbuild " 1.1.2" ]
15
14
[specljs " 2.9.1" ]]
Original file line number Diff line number Diff line change 7
7
[clojure.string]
8
8
[koans.meditations :as meditations]
9
9
[jayq.core :as $]
10
- [dommy.core :as dommy]
11
- [cljs.core.async :as async :refer [<! >! chan]])
10
+ [dommy.core :as dommy])
12
11
(:use-macros
13
- [dommy.macros :only [deftemplate ]])
14
- (:require-macros [cljs.core.async.macros :refer [go]]))
12
+ [dommy.macros :only [deftemplate ]]))
15
13
16
14
(defn hash-objects [] (clojure.string/split (.-hash js/location) " /" ))
17
15
76
74
(clojure.string/join " " ))]
77
75
(str fns " " code)))))
78
76
79
- (def resize-chan (chan ))
80
-
81
77
(defn load-next-koan []
82
78
(update-location-hash ))
83
79
147
143
(>= (- input-width (* 4 char-width)) shadow-width)
148
144
($/width $input (+ shadow-width (* 4 char-width)))))))
149
145
150
- (go
151
- (while true
152
- (let [e (<! resize-chan)]
153
- (resize-input (.-target e)))))
154
-
155
146
(defn show-error-message []
156
147
(let [$code-box ($ :.code-box )]
157
148
(if ($/has-class $code-box " incorrect" )
187
178
(when (= (.-which e) enter-key)
188
179
(evaluate-koan ))))
189
180
($/on ($ js/document) :input :input (fn [e]
190
- (go ( >! resize-chan e))))
181
+ (resize-input ( .-target e))))
191
182
192
183
#_(if-not (clojure.string/blank? (.-hash js/location))
193
184
($/hide ($ " #welcome" )))
You can’t perform that action at this time.
0 commit comments