aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-03-19 16:09:08 -0700
committerJacob Thornton <[email protected]>2012-03-19 16:09:08 -0700
commit05e0d5f3d931e84f3bc86a5c1153e710237cb53a (patch)
tree2b476c0b92dd49c305144574a11a6758ed4597ab
parent67f199678c6f764f2812260f42b553b22ec740f8 (diff)
downloadbootstrap-05e0d5f3d931e84f3bc86a5c1153e710237cb53a.tar.xz
bootstrap-05e0d5f3d931e84f3bc86a5c1153e710237cb53a.zip
fire active event on active
-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 b7ff907f7..dea6e95f0 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')
}
}