Move click on elem to before usage
This commit is contained in:
parent
660163c842
commit
c4096a771a
1 changed files with 3 additions and 3 deletions
|
@ -4,12 +4,12 @@
|
|||
(let [enter-keycode 13]
|
||||
(= (.-which event) enter-keycode)))
|
||||
|
||||
(defn click-on-self? [event node]
|
||||
(click-on-elem? event node))
|
||||
|
||||
(defn click-on-elem? [event node]
|
||||
(.contains node (.-target event)))
|
||||
|
||||
(defn click-on-self? [event node]
|
||||
(click-on-elem? event node))
|
||||
|
||||
(defn on-document-mousedown [f]
|
||||
(.addEventListener js/document "mousedown" f))
|
||||
|
||||
|
|
Loading…
Reference in a new issue