mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05:00
✨ Minor changes on clojure transit handlers.
This commit is contained in:
parent
bab73cf4eb
commit
82f05f108f
1 changed files with 2 additions and 6 deletions
|
@ -32,9 +32,7 @@
|
|||
(fn [v] (into {} v))))
|
||||
|
||||
(def point-read-handler
|
||||
(t/read-handler
|
||||
(fn [value]
|
||||
(gpt/map->Point value))))
|
||||
(t/read-handler gpt/map->Point))
|
||||
|
||||
(def matrix-write-handler
|
||||
(t/write-handler
|
||||
|
@ -42,9 +40,7 @@
|
|||
(fn [v] (into {} v))))
|
||||
|
||||
(def matrix-read-handler
|
||||
(t/read-handler
|
||||
(fn [value]
|
||||
(gmt/map->Matrix value))))
|
||||
(t/read-handler gmt/map->Matrix))
|
||||
|
||||
(def +read-handlers+
|
||||
(assoc dt/+read-handlers+
|
||||
|
|
Loading…
Add table
Reference in a new issue