fixed issue with log groupings
This commit is contained in:
parent
8caee1115b
commit
62251dfe2b
|
@ -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)]
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue