mirror of https://github.com/status-im/reagent.git
Cleanup
This commit is contained in:
parent
1555fd9c3e
commit
ba18691674
|
@ -72,7 +72,7 @@
|
||||||
:componentWillReceiveProps
|
:componentWillReceiveProps
|
||||||
(fn [props]
|
(fn [props]
|
||||||
(this-as C
|
(this-as C
|
||||||
(when f (f C (aget props cljs-argv)))))
|
(f C (aget props cljs-argv))))
|
||||||
|
|
||||||
:shouldComponentUpdate
|
:shouldComponentUpdate
|
||||||
(fn [nextprops nextstate]
|
(fn [nextprops nextstate]
|
||||||
|
@ -102,7 +102,8 @@
|
||||||
(fn []
|
(fn []
|
||||||
(this-as C
|
(this-as C
|
||||||
(batch/dispose C)
|
(batch/dispose C)
|
||||||
(when f (f C))))
|
(when-not (nil? f)
|
||||||
|
(f C))))
|
||||||
|
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue