dotsunited-off-canvas-navigation
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
336774
9492