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.7.0 to 0.7.1

2

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

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

@@ -36,3 +36,3 @@ /*

})
.bind( "touchend." + pluginName + " click." + pluginName+ " pointerup." + pluginName + " MSPointerUp." + pluginName, function( a ){
.bind( "focusin." + pluginName + " touchend." + pluginName + " click." + pluginName+ " pointerup." + pluginName + " MSPointerUp." + pluginName, function( a ){
var atype = a.originalEvent ? a.originalEvent.type : a.type;

@@ -196,6 +196,6 @@ if( atype === "touchend" || atype === "pointerup" || atype === "MSPointerUp" ){

}

@@ -202,0 +202,0 @@ } );

@@ -19,9 +19,3 @@ /* collapsible extension for navbar functionality */

$moreBtn
.attr( "aria-label", "More items" )
.bind( "click", function(){
if( $collapsible.is( ".collapsible-expanded" ) ){
$collapsible.find( "." + itemMenuClass ).eq(0).focus();
}
} );
$moreBtn.attr( "aria-label", "Toggle more items" );

@@ -81,2 +75,8 @@ var resetItems = function(){

} )
.bind( "expand", function( e ){
if( $( e.target ).is( this ) ){
$moreBtn.attr( "tabindex", "-1" );
$collapsible.find( "." + itemMenuClass + " a" ).eq(0).focus();
}
})
.bind( "collapse", function( e ){

@@ -87,2 +87,6 @@ var $childCollapsibles = $( e.target ).find( "." + pluginName + "-expanded." + itemMenuClass );

}
// restore tabindex
if( $( e.target ).is( this ) ){
$moreBtn.attr( "tabindex", "0" );
}

@@ -89,0 +93,0 @@ } );

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