aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/assets/bootstrap.zipbin55979 -> 55986 bytes
-rw-r--r--docs/assets/js/bootstrap-scrollspy.js4
-rw-r--r--js/bootstrap-scrollspy.js4
3 files changed, 4 insertions, 4 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 () {
diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js
index 487e6818b..bd3f10604 100644
--- a/js/bootstrap-scrollspy.js
+++ b/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 () {