Skip to content

Commit

Permalink
replace getAttributeNames() with for ...in loop to fix Edge <= 17 sup…
Browse files Browse the repository at this point in the history
…port

Signed-off-by: Wouter Vroege <[email protected]>
  • Loading branch information
woutervroege committed Apr 5, 2020
1 parent a130508 commit a6bee77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom-properties-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a6bee77

Please sign in to comment.