]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fire active event on active
authorJacob Thornton <jacobthornton@gmail.com>
Mon, 19 Mar 2012 23:09:08 +0000 (16:09 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Mon, 19 Mar 2012 23:09:08 +0000 (16:09 -0700)
js/bootstrap-scrollspy.js

index b7ff907f715dfe7f41753ddd8b3d2f8a58461bd1..dea6e95f039ba2160c25121ad64e024330e24cfc 100644 (file)
           .addClass('active')
 
         if ( active.parent('.dropdown-menu') )  {
-          active.closest('li.dropdown').addClass('active')
+          active = active.closest('li.dropdown').addClass('active')
         }
+
+        active.trigger('active')
       }
 
   }