html-element-property-mixins
Advanced tools
Comparing version 0.10.10 to 0.10.11
{ | ||
"name": "html-element-property-mixins", | ||
"version": "0.10.10", | ||
"version": "0.10.11", | ||
"description": "A collection of mixins extending HTMLElement with properties.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -10,9 +10,8 @@ export const PropertiesChangedCallback = (SuperClass) => class extends SuperClass { | ||
static __addChangedProperty(propName, oldValue) { | ||
window.cancelAnimationFrame(this.__propertiesChangedCallbackDebouncer); | ||
const changedProps = this.__changedProperties; | ||
if(!changedProps.has(propName)) changedProps.set(propName, oldValue); | ||
this.__propertiesChangedCallbackDebouncer = window.requestAnimationFrame(this.constructor.__invokeCallback.bind(this)); | ||
if(!this.__changedProperties.has(propName)) this.__changedProperties.set(propName, oldValue); | ||
window.requestAnimationFrame(this.constructor.__invokeCallback.bind(this)); | ||
} | ||
static __invokeCallback() { | ||
if(this.__changedProperties.size === 0) return; | ||
const oldValues = {}; | ||
@@ -19,0 +18,0 @@ const newValues = {}; |
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
38024
243