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

Commit

Permalink
use same console grouping as inserted
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jan 14, 2014
1 parent 2a8c5f6 commit 96f3790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -209,6 +209,7 @@ function _removed(element) {
element.detachedCallback();
}
}
logFlags.dom && console.groupEnd();
}
}

Expand Down

0 comments on commit 96f3790

Please sign in to comment.