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
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-03-20 03:09:08 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-03-20 03:09:08 +0400
commit05e0d5f3d931e84f3bc86a5c1153e710237cb53a (patch)
tree2b476c0b92dd49c305144574a11a6758ed4597ab /js/bootstrap-scrollspy.js
parent67f199678c6f764f2812260f42b553b22ec740f8 (diff)
fire active event on active
Diffstat (limited to 'js/bootstrap-scrollspy.js')
-rw-r--r--js/bootstrap-scrollspy.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js
index b7ff907f71..dea6e95f03 100644
--- a/js/bootstrap-scrollspy.js
+++ b/js/bootstrap-scrollspy.js
@@ -92,8 +92,10 @@
.addClass('active')
if ( active.parent('.dropdown-menu') ) {
- active.closest('li.dropdown').addClass('active')
+ active = active.closest('li.dropdown').addClass('active')
}
+
+ active.trigger('active')
}
}