diff --git a/examples/simple/project.clj b/examples/simple/project.clj index 60e6f22..b47c68a 100644 --- a/examples/simple/project.clj +++ b/examples/simple/project.clj @@ -1,9 +1,10 @@ (defproject simple-cloact "0.0.2-SNAPSHOT" - :dependencies [[org.clojure/clojurescript "0.0-2120"] + :dependencies [[org.clojure/clojure "1.5.1"] + [org.clojure/clojurescript "0.0-2120"] [cloact "0.0.2-SNAPSHOT"]] - :plugins [[lein-cljsbuild "1.0.0"]] + :plugins [[lein-cljsbuild "1.0.1"]] :hooks [leiningen.cljsbuild] :profiles {:prod {:cljsbuild {:builds diff --git a/examples/todomvc/project.clj b/examples/todomvc/project.clj index f37718d..f2cb2af 100644 --- a/examples/todomvc/project.clj +++ b/examples/todomvc/project.clj @@ -1,9 +1,10 @@ (defproject todomvc-cloact "0.0.2-SNAPSHOT" - :dependencies [[org.clojure/clojurescript "0.0-2120"] + :dependencies [[org.clojure/clojure "1.5.1"] + [org.clojure/clojurescript "0.0-2120"] [cloact "0.0.2-SNAPSHOT"]] - :plugins [[lein-cljsbuild "1.0.0"]] + :plugins [[lein-cljsbuild "1.0.1"]] :hooks [leiningen.cljsbuild] :profiles {:prod {:cljsbuild {:builds diff --git a/project.clj b/project.clj index f739f8b..4bf9ae5 100644 --- a/project.clj +++ b/project.clj @@ -1,7 +1,8 @@ (defproject cloact "0.0.2-SNAPSHOT" - :dependencies [[org.clojure/clojurescript "0.0-2120"]] + :dependencies [[org.clojure/clojure "1.5.1"] + [org.clojure/clojurescript "0.0-2120"]] :plugins [[lein-cljsbuild "1.0.1"]] :hooks [leiningen.cljsbuild] :profiles {:prod {:cljsbuild diff --git a/src/cloact/impl/component.cljs b/src/cloact/impl/component.cljs index 46d1d1a..0482605 100644 --- a/src/cloact/impl/component.cljs +++ b/src/cloact/impl/component.cljs @@ -92,7 +92,7 @@ (defn- do-render [C f] (set! (.-isRenderContext ratom/*ratom-context*) true) - (let [res (f (cljs-props C) C) + (let [res (f (cljs-props C) C (.-state C)) conv (if (vector? res) (tmpl/as-component res) (if (fn? res)