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.5 to 0.10.6

2

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