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

Comply to the new style.

This commit is contained in:
XhmikosR
2014-03-17 09:12:55 +02:00
parent 5ef9383f53
commit 7b0acf14d8
24 changed files with 171 additions and 152 deletions

View File

@@ -43,7 +43,6 @@
this.offsets = $([])
this.targets = $([])
var self = this
this.$body
@@ -57,7 +56,7 @@
return ($href
&& $href.length
&& $href.is(':visible')
&& [[ $href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href ]]) || null
&& [[$href[offsetMethod]().top + (!$.isWindow(self.$scrollElement.get(0)) && self.$scrollElement.scrollTop()), href]]) || null
})
.sort(function (a, b) { return a[0] - b[0] })
.each(function () {
@@ -87,7 +86,7 @@
activeTarget != targets[i]
&& scrollTop >= offsets[i]
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
&& this.activate( targets[i] )
&& this.activate(targets[i])
}
}