aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-01-21 14:13:26 -0800
committerChris Rebert <[email protected]>2015-01-21 14:13:26 -0800
commit426e8e12cdbbfd6080d0a861b456538c0c123d4b (patch)
tree9a395b654981e95e56eddc91b04596d7a6a668a3
parentc8be2a063ae45497021a96dc53dc2d066f214867 (diff)
downloadbootstrap-426e8e12cdbbfd6080d0a861b456538c0c123d4b.tar.xz
bootstrap-426e8e12cdbbfd6080d0a861b456538c0c123d4b.zip
Fix error in condition in Tab plugin
Refs #15186
-rw-r--r--js/tab.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tab.js b/js/tab.js
index ddb7fc9c4..311a01f10 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -88,7 +88,7 @@
element.removeClass('fade')
}
- if (element.parent('.dropdown-menu')) {
+ if (element.parent('.dropdown-menu').length) {
element
.closest('li.dropdown')
.addClass('active')