diff --git a/src/Observer.js b/src/Observer.js index 3047bf4..03bd445 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.__upgraded__) { + if (element.attachedCallback || element.detachedCallback || (element.__upgraded__ && logFlags.dom)) { 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.__upgraded__) { + if (element.attachedCallback || element.detachedCallback || (element.__upgraded__ && logFlags.dom)) { logFlags.dom && console.group('removed:', element.localName); if (!inDocument(element)) { element.__inserted = (element.__inserted || 0) - 1;