From 1c9999850246157b9723d9d981fc1e81e6393ba7 Mon Sep 17 00:00:00 2001 From: Rovanion Luckey Date: Thu, 30 Nov 2017 10:53:07 +0100 Subject: [PATCH] Prevent the rotation animation from being put in place with each reload. --- src/weather_magic/world.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weather_magic/world.cljs b/src/weather_magic/world.cljs index 4dfdaa7..3f6b2ef 100644 --- a/src/weather_magic/world.cljs +++ b/src/weather_magic/world.cljs @@ -147,4 +147,4 @@ (reset! state/earth-animation-fn go-to-view!))) ;; THIS IS BAD AND I SHOULD FEEL BAD. -(reset! state/earth-animation-fn spin-earth!) +(defonce init-animation-fn (reset! state/earth-animation-fn spin-earth!))