1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-29 06:49:06 +02:00

rename tabs to tab - clean up lots of api stuff make href acceptable target val

This commit is contained in:
Jacob Thornton
2011-11-27 17:04:55 -08:00
parent 3925ea9986
commit 46fe38386a
8 changed files with 161 additions and 124 deletions

View File

@@ -28,7 +28,9 @@
var process = $.proxy(this.process, this)
this.$scrollElement = $(element).bind('scroll.scroll.data-api', process)
this.selector = (this.$scrollElement.attr('data-target') || '') + ' .nav li > a'
this.selector = (this.$scrollElement.attr('data-target')
|| this.$scrollElement.attr('href')
|| '') + ' .nav li > a'
this.$body = $('body').delegate(this.selector, 'click.scroll.data-api', process)
this.refresh()