From bdb0738a1b242e7eaf553f9c7827f27363d296d3 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 25 Jan 2016 18:33:06 +0200 Subject: [PATCH] Remove duplicated lense from canvas ns. --- src/uxbox/ui/workspace/canvas.cljs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/uxbox/ui/workspace/canvas.cljs b/src/uxbox/ui/workspace/canvas.cljs index b268aacbcf..dae243c2b2 100644 --- a/src/uxbox/ui/workspace/canvas.cljs +++ b/src/uxbox/ui/workspace/canvas.cljs @@ -21,14 +21,6 @@ [uxbox.ui.workspace.options :refer (element-opts)]) (:import goog.events.EventType)) -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Lenses -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - -(def ^:static ^:private shapes-by-id - (as-> (l/key :shapes-by-id) $ - (l/focus-atom $ st/state))) - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Background ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -148,7 +140,7 @@ (defn- canvas-render [own {:keys [width height id] :as page}] (let [workspace (rum/react wb/workspace-l) - shapes-by-id (rum/react shapes-by-id) + shapes-by-id (rum/react wb/shapes-by-id) workspace-selected (:selected workspace) xf (comp (map #(get shapes-by-id %))