mirror of https://github.com/status-im/reagent.git
Fix RAF bind on Node
This commit is contained in:
parent
e2f3717d93
commit
2f2574fd67
|
@ -14,15 +14,15 @@
|
|||
(js/setTimeout f 16))
|
||||
|
||||
(def next-tick
|
||||
(.bind (if-not is-client
|
||||
fake-raf
|
||||
(let [w js/window]
|
||||
(or (.-requestAnimationFrame w)
|
||||
(if-not is-client
|
||||
fake-raf
|
||||
(let [w js/window]
|
||||
(.bind (or (.-requestAnimationFrame w)
|
||||
(.-webkitRequestAnimationFrame w)
|
||||
(.-mozRequestAnimationFrame w)
|
||||
(.-msRequestAnimationFrame w)
|
||||
fake-raf)))
|
||||
js/window))
|
||||
fake-raf)
|
||||
w))))
|
||||
|
||||
(defn compare-mount-order
|
||||
[^clj c1 ^clj c2]
|
||||
|
|
Loading…
Reference in New Issue