From 057fae9e4602a6f5a48a99b0ded694ffe40378ca Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Fri, 15 Mar 2019 16:49:57 +0200 Subject: [PATCH] Update easy.cljs --- modules/reitit-frontend/src/reitit/frontend/easy.cljs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/reitit-frontend/src/reitit/frontend/easy.cljs b/modules/reitit-frontend/src/reitit/frontend/easy.cljs index 59313567..3f94e5e4 100644 --- a/modules/reitit-frontend/src/reitit/frontend/easy.cljs +++ b/modules/reitit-frontend/src/reitit/frontend/easy.cljs @@ -6,13 +6,15 @@ (defonce history (atom nil)) -;; Doc-strings from reitit.frontend.history -;; remember to update both! +;; Doc-strings from reitit.frontend.history remember to update both! +;; Differences: +;; This one automatically removes previous event listeners. (defn start! "This registers event listeners on HTML5 history and hashchange events. - When using with development workflow like Figwheel, rememeber to - remove listeners using stop! call before calling start! again. + + Automatically removes previous event listeners so it is safe to call this repeatedly, for example when using + Figwheel or similar development workflow. Parameters: - router The Reitit router.