From fb025bbbe931d051bd69e7ea58f561502491ff44 Mon Sep 17 00:00:00 2001 From: David Mohl Date: Tue, 27 Oct 2015 15:57:02 +0900 Subject: [PATCH] changed :app/text to :app/msg because it conflicts with (text) --- resources/core.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/core.cljs b/resources/core.cljs index 7cefcdf..78b4a51 100644 --- a/resources/core.cljs +++ b/resources/core.cljs @@ -17,17 +17,17 @@ ;; Set up our Om UI -(defonce app-state (atom {:app/text "Welcome to $PROJECT_NAME$"})) +(defonce app-state (atom {:app/msg "Welcome to $PROJECT_NAME$"})) (defui WidgetComponent static om/IQuery (query [this] - '[:app/text]) + '[:app/msg]) Object (render [this] - (let [{:keys [app/text]} (om/props this)] + (let [{:keys [app/msg]} (om/props this)] (view {:style {:flexDirection "column" :margin 40}} - (text nil text))))) + (text nil msg))))) ;; om.next parser (defmulti read om/dispatch)