0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

💄 Add minor cosmetic change to dm/get-prop macro impl

This commit is contained in:
Andrey Antukh 2023-06-20 11:12:31 +02:00
parent f6e9c398b0
commit f7801f9450

View file

@ -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)