Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 96f3790

Browse files
committed
use same console grouping as inserted
1 parent 2a8c5f6 commit 96f3790

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Observer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function _removed(element) {
194194
// TODO(sjmiles): temporary: do work on all custom elements so we can track
195195
// behavior even when callbacks not defined
196196
if (element.detachedCallback || (element.__upgraded__ && logFlags.dom)) {
197-
logFlags.dom && console.log('removed:', element.localName);
197+
logFlags.dom && console.group('removed:', element.localName);
198198
if (!inDocument(element)) {
199199
element.__inserted = (element.__inserted || 0) - 1;
200200
// if we are in a 'inserted' state, bluntly adjust to an 'removed' state
@@ -209,6 +209,7 @@ function _removed(element) {
209209
element.detachedCallback();
210210
}
211211
}
212+
logFlags.dom && console.groupEnd();
212213
}
213214
}
214215

0 commit comments

Comments
 (0)