mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
✨ Make the dm/get-prop work also with non static fields
This commit is contained in:
parent
260879791b
commit
c53e476ba2
@ -121,7 +121,7 @@
|
||||
directly on CLJS, on CLJ works as get."
|
||||
[obj prop]
|
||||
(if (:ns &env)
|
||||
(list 'js* (c/str "(~{}?." (str/snake prop) ")") obj)
|
||||
(list 'js* (c/str "(~{}?." (str/snake prop) "?? ~{})") obj (list 'cljs.core/get obj prop))
|
||||
(list `c/get obj prop)))
|
||||
|
||||
(def ^:dynamic *assert-context* nil)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user