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

a-simple-switch

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a-simple-switch - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

hephaestus-config.js

3

package.json
{
"name": "a-simple-switch",
"version": "0.4.0",
"version": "0.4.1",
"description": "Vanilla JS/CSS Switch UI element",

@@ -34,2 +34,3 @@ "main": "src/javascript/index.js",

"gulp-zip": "^4.0.0",
"hephaestus": "^0.2.0",
"webpack": "^2.6.1",

@@ -36,0 +37,0 @@ "webpack-stream": "^3.2.0"

@@ -6,3 +6,3 @@ export class Switch {

this.isMaterial = typeof config.material !== 'undefined' ? config.material : false;
this.checked = false;
this.checked = !!this.element.checked;

@@ -37,2 +37,6 @@ // override from property

this.updateSize();
if(this.checked) {
this.track.classList.add(Switch.CHECKED_CLASS_NAME);
}
}

@@ -39,0 +43,0 @@

Sorry, the diff of this file is not supported yet

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