From fdf34c75c19364c3a717c3a949c0e31cde57e2a4 Mon Sep 17 00:00:00 2001 From: Gregg8 Date: Thu, 11 Jan 2018 18:22:45 +1100 Subject: [PATCH] A couple more --- src/day8/re_frame/trace/view/subs.cljs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/day8/re_frame/trace/view/subs.cljs b/src/day8/re_frame/trace/view/subs.cljs index b696008..cb6acf1 100644 --- a/src/day8/re_frame/trace/view/subs.cljs +++ b/src/day8/re_frame/trace/view/subs.cljs @@ -23,11 +23,11 @@ ;; TODO: START ========== LOCAL DATA - REPLACE WITH SUBS AND EVENTS -(def *pods (r/atom [{:id (gensym) :type :destroyed :layer "3" :path [:todo/blah] :open? true :diff? true} - {:id (gensym) :type :created :layer "3" :path [:todo/completed] :open? true :diff? true} - {:id (gensym) :type :re-run :layer "3" :path [:todo/completed] :open? true :diff? true} - {:id (gensym) :type :re-run :layer "2" :path [:todo/blah] :open? true :diff? true} - {:id (gensym) :type :not-run :layer "3" :path [:todo/blah] :open? true :diff? true}] +(def *pods (r/atom [{:id (gensym) :type :destroyed :layer "3" :path "[:todo/blah]" :open? true :diff? true} + {:id (gensym) :type :created :layer "3" :path "[:todo/completed]" :open? true :diff? true} + {:id (gensym) :type :re-run :layer "3" :path "[:todo/completed]" :open? true :diff? true} + {:id (gensym) :type :re-run :layer "2" :path "[:todo/blah]" :open? true :diff? true} + {:id (gensym) :type :not-run :layer "3" :path "[:todo/blah]" :open? true :diff? true}] #_[])) (defn update-pod-field @@ -35,7 +35,7 @@ (let [f (fn [pod] (if (= id (:id pod)) (do - (println "Updated" field "in" (:id pod) "from" (get pod field) "to" new-val) + ;(println "Updated" field "in" (:id pod) "from" (get pod field) "to" new-val) (assoc pod field new-val)) pod))] (reset! *pods (mapv f @*pods))))