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

dotsunited-off-canvas-navigation

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotsunited-off-canvas-navigation - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

15

lib/setup.js

@@ -43,3 +43,3 @@ (function(window, factory) {

.on('click.' + namespace + '-internal', function(e) {
if (panel.index(e.target) >= 0 || $.contains(panel.get(0), e.target)) {
if (!panel.length || panel.index(e.target) >= 0 || $.contains(panel.get(0), e.target)) {
return;

@@ -79,13 +79,14 @@ }

var target = toggle.attr('href');
var panel, controls;
if (!target) {
target = '#' + toggle.attr('aria-controls');
controls = toggle.attr('aria-controls');
if (!!controls) {
target = '#' + controls;
}
}
var panel = $(target);
panel = !target ? $() : $(target);
if (!panel.length) {
return;
}
e.preventDefault();

@@ -92,0 +93,0 @@

@@ -10,3 +10,3 @@ {

},
"version": "2.3.0",
"version": "2.4.0",
"repository": {

@@ -13,0 +13,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

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