Add accidentally dropped "recur" back
This commit is contained in:
parent
c90c5e41d2
commit
75496c1376
1 changed files with 4 additions and 3 deletions
|
@ -96,14 +96,15 @@
|
|||
(a/sub <events :body-mousedown subscriber)
|
||||
(a/sub <events :body-scroll subscriber)
|
||||
(go-loop [] (let [event (<! subscriber)]
|
||||
(when-not (or (om/get-state owner :unmounted)
|
||||
(nil? event))
|
||||
(when-not (or (nil? event)
|
||||
(om/get-state owner :unmounted))
|
||||
(when (and (= (:type event) :body-mousedown)
|
||||
(not (dom/click-on-self? (:event event)
|
||||
(om/get-node owner))))
|
||||
(transition-state owner :body-mousedown))
|
||||
(when (= (:type event) :body-scroll)
|
||||
(transition-state owner :scroll)))))))
|
||||
(transition-state owner :scroll))
|
||||
(recur))))))
|
||||
om/IWillUnmount
|
||||
(will-unmount [_]
|
||||
(let [<events (om/get-shared owner :<events)
|
||||
|
|
Loading…
Reference in a new issue