Properly trigger page update on shape movement.

This commit is contained in:
Andrey Antukh committed 2016-04-13 20:15:07 +03:00
1 parent e40632cca6
commit 5624882ce2
1 file changed
+1
+1
View File
@@ -43,6 +43,7 @@
"Just updates in place the shape."
[{:keys [id] :as shape}]
(reify
udp/IPageUpdate
rs/UpdateEvent
(-apply-update [_ state]
(update-in state [:shapes-by-id id] merge shape))))