html-element-property-mixins
Advanced tools
Comparing version 0.10.3 to 0.10.4
{ | ||
"name": "html-element-property-mixins", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "A collection of mixins extending HTMLElement with properties.", | ||
@@ -31,8 +31,3 @@ "main": "src/index.js", | ||
} | ||
}, | ||
"release-it": { | ||
"github": { | ||
"release": true | ||
} | ||
} | ||
} |
@@ -24,3 +24,3 @@ export const DOMProperties = (SuperClass) => class extends SuperClass { | ||
if(!propName) return; | ||
this.constructor.__setDOMProperty.call(this, propName, this.getAttribute(attrName)); | ||
this.constructor.__setDOMProperty.call(this, propName, oldValue, this.getAttribute(attrName)); | ||
} | ||
@@ -46,6 +46,6 @@ | ||
static __setDOMProperty(propName, value) { | ||
static __setDOMProperty(propName, oldValue, value) { | ||
const converters = this.constructor.propertyFromAttributeConverters || {}; | ||
const converter = converters[propName]; | ||
if(converter) value = converter.call(this, this[propName], value); | ||
if(converter) value = converter.call(this, oldValue, value); | ||
this[propName] = value; | ||
@@ -52,0 +52,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
44069
29
422