aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-01-28 10:59:51 -0800
committerChris Rebert <[email protected]>2015-01-28 10:59:51 -0800
commitaf8fa54fcd402996756394eaa955a030021a868c (patch)
treec344f2491ae6f7c434dacba6154aeed1b053b53e
parentcb939e2efe36eb3ad7914a423d8ff08ac7160ca5 (diff)
parent426e8e12cdbbfd6080d0a861b456538c0c123d4b (diff)
downloadbootstrap-af8fa54fcd402996756394eaa955a030021a868c.tar.xz
bootstrap-af8fa54fcd402996756394eaa955a030021a868c.zip
Merge pull request #15630 from twbs/tabs-cond-fix
Fix error in condition in Tab plugin
-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')