File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
- (defproject reagent " 0.9.0-rc1"
1
+ (defproject reagent " 0.9.0-rc1-BINDFIX "
2
2
:url " http://github.com/reagent-project/reagent"
3
3
:license {:name " MIT" }
4
4
:description " A simple ClojureScript interface to React"
Original file line number Diff line number Diff line change 16
16
(def next-tick
17
17
(if-not is-client
18
18
fake-raf
19
- (let [w js/window]
20
- (or (.-requestAnimationFrame w)
21
- (.-webkitRequestAnimationFrame w)
22
- (.-mozRequestAnimationFrame w)
23
- (.-msRequestAnimationFrame w)
24
- fake-raf))))
19
+ (or (. (. js/window -requestAnimationFrame) bind js/window)
20
+ (. (. js/window -webkitRequestAnimationFrame) bind js/window)
21
+ (. (. js/window -mozRequestAnimationFrame) bind js/window)
22
+ (. (. js/window -msRequestAnimationFrame) bind js/window)
23
+ fake-raf)))
25
24
26
25
(defn compare-mount-order
27
26
[c1 c2]
You can’t perform that action at this time.
0 commit comments