From 5e57e3ae7e6a38b4566cb12e3eee3f4b3bb92073 Mon Sep 17 00:00:00 2001 From: anatoly Date: Mon, 11 Jan 2016 20:00:38 -0500 Subject: [PATCH] opening up "cleanup-if-dirty" to solve random cljs compile/resolution problems --- src/mount/core.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount/core.cljc b/src/mount/core.cljc index 7100121..ce16159 100644 --- a/src/mount/core.cljc +++ b/src/mount/core.cljc @@ -45,7 +45,7 @@ (nth f 2) ;; magic 2 is to get the body => ["fn*" "[]" "(fn body)"] f)) -(defn- cleanup-if-dirty +(defn cleanup-if-dirty "in case a namespace is recompiled without calling (mount/stop), a running state instance will still be running. this function stops this 'lost' state instance.