Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-06-03 06:02:30 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-06-03 06:02:30 +0400
commit354f99f0bd8e1c2dcf9e094245b71e2587bd78c1 (patch)
tree0b166275dd14b5fbeb98252564d4c87add4742d0 /js
parentb8a8927b0cd85ab3873bb0e2841a9f77591d5b5f (diff)
add length to parent dropdown check #3316
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-scrollspy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js
index a210fa945c..4416d21684 100644
--- a/js/bootstrap-scrollspy.js
+++ b/js/bootstrap-scrollspy.js
@@ -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')
}