aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-03-21 23:59:27 -0700
committerJacob Thornton <[email protected]>2012-03-21 23:59:27 -0700
commitb3bf223617754e658eb62ef0f068732e719a2c82 (patch)
treedec00591263527c896aade8283c0a28d375809e5 /docs
parent20e085723b3f55fdc1db7f1687d535af7d127319 (diff)
downloadbootstrap-b3bf223617754e658eb62ef0f068732e719a2c82.tar.xz
bootstrap-b3bf223617754e658eb62ef0f068732e719a2c82.zip
filter out non matches in map
Diffstat (limited to 'docs')
-rw-r--r--docs/assets/bootstrap.zipbin55979 -> 55986 bytes
-rw-r--r--docs/assets/js/bootstrap-scrollspy.js4
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip
index 72d0da006..abd205cd1 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 487e6818b..bd3f10604 100644
--- a/docs/assets/js/bootstrap-scrollspy.js
+++ b/docs/assets/js/bootstrap-scrollspy.js
@@ -54,9 +54,9 @@
.map(function () {
var href = $(this).attr('href')
, $href = /^#\w/.test(href) && $(href)
- return $href
+ return ( $href
&& href.length
- && [[ $href.position().top, href ]]
+ && [[ $href.position().top, href ]] ) || null
})
.sort(function (a, b) { return a[0] - b[0] })
.each(function () {