From 62251dfe2b6b8e64a6bb41b10435490f5f5746ca Mon Sep 17 00:00:00 2001 From: Stuart Mitchell Date: Fri, 17 Jul 2015 14:16:56 +1200 Subject: [PATCH] fixed issue with log groupings --- src/re_frame/middleware.cljs | 1 - src/re_frame/utils.cljs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/re_frame/middleware.cljs b/src/re_frame/middleware.cljs index ed9b4d9..5c8fbe1 100644 --- a/src/re_frame/middleware.cljs +++ b/src/re_frame/middleware.cljs @@ -64,7 +64,6 @@ [handler] (fn debug-handler [db v] - (log "-- New Event ----------------------------------------------------") (group "re-frame event: " v) (let [new-db (handler db v) diff (data/diff db new-db)] diff --git a/src/re_frame/utils.cljs b/src/re_frame/utils.cljs index 9bf6f20..8a95c3c 100644 --- a/src/re_frame/utils.cljs +++ b/src/re_frame/utils.cljs @@ -16,8 +16,8 @@ {:log #(.log js/console %) :warn #(.warn js/console %) :error #(.error js/console %) - :group #(if (.group js/console) (.group js/console %) (.log js/console %)) ;; group does not exist < IE 11 - :groupEnd #(when (.groupEnd js/console) (.groupEnd js/console))}) ;; groupEnd does not exist < IE 11 + :group #(if (.-groupCollapsed js/console) (.groupCollapsed js/console %) (.log js/console %)) ;; group does not exist < IE 11 + :groupEnd #(when (.-groupEnd js/console) (.groupEnd js/console))}) ;; groupEnd does not exist < IE 11 ;; holds the current set of loggers. (def loggers (atom default-loggers))