Minor refactor on shapes data events.

Adding more asserts and more specs.
This commit is contained in:
Andrey Antukh 2017-03-02 16:13:42 +01:00
parent fdf3f1b6f0
commit b3a2ae3eb2
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
8 changed files with 281 additions and 205 deletions

View file

@ -121,7 +121,7 @@
props {:x x1 :y y1 :width width :height height}]
(letfn [(on-input [ev]
(let [content (dom/event->inner-text ev)]
(st/emit! (uds/update-text id {:content content}))))]
(st/emit! (uds/update-text id content))))]
[:foreignObject props
[:div {:style style
:ref "container"