mirror of
https://github.com/penpot/penpot.git
synced 2025-03-11 07:11:32 -05:00
✨ Make the dm/get-prop
work also with non static fields
This commit is contained in:
parent
260879791b
commit
c53e476ba2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue