From a6bee7783d024602b62fa5a4471a9ed407cecb86 Mon Sep 17 00:00:00 2001 From: Wouter Vroege Date: Sun, 5 Apr 2020 11:47:59 +0200 Subject: [PATCH] replace getAttributeNames() with for ...in loop to fix Edge <= 17 support Signed-off-by: Wouter Vroege --- src/dom-properties-mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }