html-element-property-mixins
Advanced tools
Comparing version 0.10.1 to 0.10.2
{ | ||
"name": "html-element-property-mixins", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "A collection of mixins extending HTMLElement with properties.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -29,5 +29,3 @@ export const DOMProperties = (SuperClass) => class extends SuperClass { | ||
const attrValues = new Map(); | ||
this.getAttributeNames().map(attrName => { | ||
attrValues.set(attrName, this.getAttribute(attrName)); | ||
}); | ||
this.getAttributeNames().map(attrName => attrValues.set(attrName, this.getAttribute(attrName))); | ||
this.constructor.__initialAttributeValues = attrValues; | ||
@@ -34,0 +32,0 @@ } |
@@ -10,2 +10,3 @@ export const ObservedProperties = (SuperClass) => class extends SuperClass { | ||
connectedCallback() { | ||
this.constructor.__propertiesInited = true; | ||
super.connectedCallback && super.connectedCallback(); | ||
@@ -12,0 +13,0 @@ this.constructor.__setInitialPropertyValues.call(this); |
@@ -10,2 +10,3 @@ export const ReflectedProperties = (SuperClass) => class extends SuperClass { | ||
if(!this.isConnected) return; | ||
if(!this.constructor.__propertiesInited) return; | ||
this.constructor.__setDOMAttribute.call(this, attrName, propName, newValue); | ||
@@ -12,0 +13,0 @@ } |
Sorry, the diff of this file is not supported yet
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
43884