This commit is contained in:
Dan Holmsand 2014-02-15 12:29:16 +01:00
parent 1555fd9c3e
commit ba18691674
1 changed files with 3 additions and 2 deletions

View File

@ -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))