0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01:00

fixes #258, clicking a tab remove .active class from all elements on the page

This commit is contained in:
Jacob Fike 2011-09-19 11:54:20 -07:00
parent fc6effae51
commit 9b61f71835

View File

@ -28,7 +28,7 @@
function tab( e ) { function tab( e ) {
var $this = $(this) var $this = $(this)
, href = $this.attr('href') , href = $this.attr('href')
, $ul = $(e.liveFired) , $ul = $this.closest('ul')
, $controlled , $controlled
if (/^#\w+/.test(href)) { if (/^#\w+/.test(href)) {