From d1210304af2d9a334f4ec60c85f25cbad4e66e6c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 13 Nov 2016 17:26:17 +0100 Subject: [PATCH] Add backward compatibility for read previous point format on transit. --- src/uxbox/util/transit.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uxbox/util/transit.cljs b/src/uxbox/util/transit.cljs index 3a0a42bbe..70a94272e 100644 --- a/src/uxbox/util/transit.cljs +++ b/src/uxbox/util/transit.cljs @@ -30,7 +30,9 @@ (def point-read-handler (t/read-handler (fn [value] - (gpt/map->Point value)))) + (if (array? value) + (gpt/point (vec value)) + (gpt/map->Point value))))) (def ^:privare +read-handlers+ {"u" uuid