From e13db21194e8b2529b531230afbc25759f721a4d Mon Sep 17 00:00:00 2001 From: David Mohl Date: Tue, 27 Oct 2015 12:43:34 +0900 Subject: [PATCH] changes required to make om.next work, bump to alpha11 --- resources/core.cljs | 7 ++++--- resources/project.clj | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/core.cljs b/resources/core.cljs index 1d2370b..7cefcdf 100644 --- a/resources/core.cljs +++ b/resources/core.cljs @@ -42,10 +42,11 @@ (def reconciler (om/reconciler {:state app-state - :parser (om/parser {:read read})})) + :parser (om/parser {:read read}) + :root-render #(.render js/React %1 %2) + :root-unmount #(.unmountComponentAtNode js/React %)})) - -(om/add-root! reconciler WidgetComponent {:target 1}) +(om/add-root! reconciler WidgetComponent 1) (defn ^:export init [] ((fn render [] diff --git a/resources/project.clj b/resources/project.clj index c1376a5..96d4dc5 100644 --- a/resources/project.clj +++ b/resources/project.clj @@ -5,7 +5,7 @@ :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.145"] - [org.omcljs/om "1.0.0-alpha8"] + [org.omcljs/om "1.0.0-alpha11"] [org.omcljs/ambly "0.6.0"]] :plugins [[lein-cljsbuild "1.1.0"]] :cljsbuild {:builds {:dev {:source-paths ["src"]