diff --git a/src/reflected-properties-mixin.js b/src/reflected-properties-mixin.js index 14ac783..2be4772 100644 --- a/src/reflected-properties-mixin.js +++ b/src/reflected-properties-mixin.js @@ -1,12 +1,12 @@ export const ReflectedProperties = (SuperClass) => class extends SuperClass { connectedCallback() { - super.connectedCallback(); for(var i in this.constructor.reflectedProperties) { const propName = this.constructor.reflectedProperties[i]; const attrName = this.constructor.__getAttributeNameByPropertyName.call(this, propName); this.constructor.__setDOMAttribute.call(this, attrName, propName, this[propName]); } + super.connectedCallback(); } propertyChangedCallback(propName, oldValue, newValue) {