mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 22:01:39 +02:00
✨ Improve color asignation to profile and sessions.
This commit is contained in:
parent
f2e4417d87
commit
0ee25b6f42
7 changed files with 97 additions and 67 deletions
|
@ -34,14 +34,13 @@
|
|||
(rest keys)
|
||||
(unchecked-get res key))))))
|
||||
|
||||
(defn assign!
|
||||
(defn merge!
|
||||
([a b]
|
||||
(js/Object.assign a b))
|
||||
([a b & more]
|
||||
(reduce assign! (assign! a b) more)))
|
||||
(reduce merge! (merge! a b) more)))
|
||||
|
||||
(defn assoc!
|
||||
[obj attr value]
|
||||
(when (object? obj)
|
||||
(unchecked-set obj attr value)
|
||||
obj))
|
||||
(defn set!
|
||||
[obj key value]
|
||||
(unchecked-set obj key value)
|
||||
obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue