2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03: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
+3 -1
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()