diff --git a/src/Observer.js b/src/Observer.js index 5ee22a8..3047bf4 100644 --- a/src/Observer.js +++ b/src/Observer.js @@ -151,7 +151,7 @@ function _inserted(element) { // TODO(sjmiles): when logging, do work on all custom elements so we can // track behavior even when callbacks not defined //console.log('inserted: ', element.localName); - if (element.attachedCallback || (element.__upgraded__ && logFlags.dom)) { + if (element.__upgraded__) { logFlags.dom && console.group('inserted:', element.localName); if (inDocument(element)) { element.__inserted = (element.__inserted || 0) + 1; @@ -193,7 +193,7 @@ function removed(element) { 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)) { + if (element.__upgraded__) { logFlags.dom && console.group('removed:', element.localName); if (!inDocument(element)) { element.__inserted = (element.__inserted || 0) - 1;