From 96f37905d79cc293b3072e45155d1367a9b0f4cd Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 14 Jan 2014 14:58:12 -0800 Subject: [PATCH] use same console grouping as inserted --- src/Observer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Observer.js b/src/Observer.js index d99adcc..5ee22a8 100644 --- a/src/Observer.js +++ b/src/Observer.js @@ -194,7 +194,7 @@ function _removed(element) { // TODO(sjmiles): temporary: do work on all custom elements so we can track // behavior even when callbacks not defined if (element.detachedCallback || (element.__upgraded__ && logFlags.dom)) { - logFlags.dom && console.log('removed:', element.localName); + logFlags.dom && console.group('removed:', element.localName); if (!inDocument(element)) { element.__inserted = (element.__inserted || 0) - 1; // if we are in a 'inserted' state, bluntly adjust to an 'removed' state @@ -209,6 +209,7 @@ function _removed(element) { element.detachedCallback(); } } + logFlags.dom && console.groupEnd(); } }