From f7801f9450388cec5ac6f3c98cc2fe73b2f4a936 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 20 Jun 2023 11:12:31 +0200 Subject: [PATCH] :lipstick: Add minor cosmetic change to dm/get-prop macro impl --- common/src/app/common/data/macros.cljc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/src/app/common/data/macros.cljc b/common/src/app/common/data/macros.cljc index 2e3d0a5a9..6eabeacc9 100644 --- a/common/src/app/common/data/macros.cljc +++ b/common/src/app/common/data/macros.cljc @@ -120,13 +120,10 @@ "A macro based, optimized variant of `get` that access the property directly on CLJS, on CLJ works as get." [obj prop] - ;; `(do - ;; (when-not (record? ~obj) - ;; (js/console.trace (pr-str ~obj))) - ;; (c/get ~obj ~prop))) (if (:ns &env) (list (symbol ".") (with-meta obj {:tag 'js}) (symbol (str "-" (c/name prop)))) - `(c/get ~obj ~prop))) + (list `c/get obj prop))) + (def ^:dynamic *assert-context* nil)