0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-29 21:52:22 +01:00

add length to parent dropdown check #3316

This commit is contained in:
Jacob Thornton 2012-06-02 19:02:30 -07:00
parent b8a8927b0c
commit 354f99f0bd
4 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}

View File

@ -1418,7 +1418,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}

File diff suppressed because one or more lines are too long

View File

@ -108,7 +108,7 @@
.parent('li')
.addClass('active')
if (active.parent('.dropdown-menu')) {
if (active.parent('.dropdown-menu').length) {
active = active.closest('li.dropdown').addClass('active')
}