html-element-property-mixins
Advanced tools
Comparing version 0.10.6 to 0.10.7
{ | ||
"name": "html-element-property-mixins", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"description": "A collection of mixins extending HTMLElement with properties.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -29,3 +29,4 @@ export const DOMProperties = (SuperClass) => class extends SuperClass { | ||
const attrValues = new Map(); | ||
for(var attrName in this.attributes) attrValues.set(attrName, this.getAttribute(attrName)); | ||
const attributes = Array.from(this.attributes); | ||
for(var i in attributes) attrValues.set(attributes[i], this.getAttribute(attributes[i])) | ||
this.__initialAttributeValues = attrValues; | ||
@@ -36,3 +37,5 @@ } | ||
const attrValues = this.__initialAttributeValues; | ||
attrValues.forEach((val, attrName) => this.setAttribute(attrName, val)); | ||
attrValues.forEach((val, attrName) => { | ||
if(val !== null) this.setAttribute(attrName, val) | ||
}) | ||
} | ||
@@ -39,0 +42,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44142
425