Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-element-property-mixins

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-element-property-mixins - npm Package Compare versions

Comparing version 0.10.10 to 0.10.11

2

package.json
{
"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 = {};

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc