html-element-property-mixins
Advanced tools
Comparing version 0.10.5 to 0.10.6
{ | ||
"name": "html-element-property-mixins", | ||
"version": "0.10.5", | ||
"version": "0.10.6", | ||
"description": "A collection of mixins extending HTMLElement with properties.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -24,3 +24,3 @@ export const DOMProperties = (SuperClass) => class extends SuperClass { | ||
if(!propName) return; | ||
this.constructor.__setDOMProperty.call(this, propName, oldValue, this.getAttribute(attrName)); | ||
this.constructor.__setDOMProperty.call(this, propName, this[propName], newValue); | ||
} | ||
@@ -46,9 +46,9 @@ | ||
static __setDOMProperty(propName, oldValue, value) { | ||
static __setDOMProperty(propName, oldValue, newValue) { | ||
const converters = this.constructor.propertyFromAttributeConverters || {}; | ||
const converter = converters[propName]; | ||
if(converter) value = converter.call(this, oldValue, value); | ||
this[propName] = value; | ||
if(converter) newValue = converter.call(this, oldValue, newValue); | ||
this[propName] = newValue; | ||
} | ||
}; |
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
44063