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

fg-collapsible

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fg-collapsible - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

2

package.json
{
"name": "fg-collapsible",
"version": "0.2.5",
"version": "0.2.6",
"description": "Toggle your collapsible content",

@@ -5,0 +5,0 @@ "scripts": {

@@ -13,2 +13,10 @@ /*

function radioCheckboxChange( isChecked ) {
if( isChecked ) {
this.expand();
} else {
this.collapse();
}
}
// Simple auto-init by selector that runs when the dom is ready. Trigger "enhance" if desirable.

@@ -28,8 +36,7 @@ $( document ).bind( "click." + pluginName, function( event ){

if( isRadio || $link.is( "[type='checkbox']" ) ) {
radioCheckboxChange.call( component, $link[ 0 ].checked );
// bind so that unchecking other radios in the set will also trigger
$( isRadio ? $( "[name='" + $link.attr( "name" ) + "']" ) : $link ).unbind( "change." + pluginName ).bind( "change." + pluginName, function() {
if( $link[ 0 ].checked ) {
component.expand();
} else {
component.collapse();
}
radioCheckboxChange.call( component, $link[ 0 ].checked );
});

@@ -36,0 +43,0 @@ } else {

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