From 8e3f498a8df146c9dce17fc7ddc7587e0a6f36d7 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Mon, 26 Aug 2019 19:13:46 +1200 Subject: [PATCH] Fix Integrant resume-key method When resuming an Integrant component, this now halts the old implementation, rather than the old options. --- src/sass4clj/integrant.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sass4clj/integrant.clj b/src/sass4clj/integrant.clj index bbf3234..93d68e1 100644 --- a/src/sass4clj/integrant.clj +++ b/src/sass4clj/integrant.clj @@ -5,15 +5,15 @@ (defmethod ig/init-key ::sass4clj [_ options] (api/start options)) -(defmethod ig/halt-key! ::sass4clj [this options] - (api/stop this)) +(defmethod ig/halt-key! ::sass4clj [_ watcher] + (api/stop watcher)) -(defmethod ig/suspend-key! ::sass4clj [this options] +(defmethod ig/suspend-key! ::sass4clj [_ watcher] nil) (defmethod ig/resume-key ::sass4clj [key opts old-opts old-impl] (if (= opts old-opts) old-impl (do - (ig/halt-key! key old-opts) + (ig/halt-key! key old-impl) (ig/init-key key opts))))