aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-03-21 23:51:32 -0700
committerJacob Thornton <[email protected]>2012-03-21 23:51:32 -0700
commit20e085723b3f55fdc1db7f1687d535af7d127319 (patch)
tree22bda2e4fb0391d3a336883e3ac8598b71f9cbf6 /docs
parent706ee46b73b58059230b24589160da784778aad2 (diff)
downloadbootstrap-20e085723b3f55fdc1db7f1687d535af7d127319.tar.xz
bootstrap-20e085723b3f55fdc1db7f1687d535af7d127319.zip
cache $(href) lookup
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/bootstrap.zipbin55964 -> 55979 bytes
-rw-r--r--docs/assets/js/bootstrap-scrollspy.js7
2 files changed, 4 insertions, 3 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index caf293653..72d0da006 100644
--- a/docs/assets/bootstrap.zip
+++ b/docs/assets/bootstrap.zip
Binary files differ
diff --git a/docs/assets/js/bootstrap-scrollspy.js b/docs/assets/js/bootstrap-scrollspy.js
index 5008b0fe9..487e6818b 100644
--- a/docs/assets/js/bootstrap-scrollspy.js
+++ b/docs/assets/js/bootstrap-scrollspy.js
@@ -53,9 +53,10 @@
.find(this.selector)
.map(function () {
var href = $(this).attr('href')
- return /^#\w/.test(href)
- && $(href).length
- && [[ $(href).position().top, href ]]
+ , $href = /^#\w/.test(href) && $(href)
+ return $href
+ && href.length
+ && [[ $href.position().top, href ]]
})
.sort(function (a, b) { return a[0] - b[0] })
.each(function () {