diff --git a/src/dom-properties-mixin.js b/src/dom-properties-mixin.js index 64b2204..4c6af19 100644 --- a/src/dom-properties-mixin.js +++ b/src/dom-properties-mixin.js @@ -26,7 +26,7 @@ export const DOMProperties = (SuperClass) => class extends SuperClass { static __saveInitialAttributeValues() { const attrValues = new Map(); - this.getAttributeNames().map(attrName => attrValues.set(attrName, this.getAttribute(attrName))); + for(var attrName in this.attributes) attrValues.set(attrName, this.getAttribute(attrName)); this.__initialAttributeValues = attrValues; }