]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Affix: $('body') => $(document.body) 16023/head
authorChris Rebert <code@rebertia.com>
Mon, 9 Mar 2015 13:43:41 +0000 (06:43 -0700)
committerChris Rebert <code@rebertia.com>
Mon, 9 Mar 2015 13:43:41 +0000 (06:43 -0700)
js/affix.js

index 59584ec855caef57aca361c4c63aee696c542680..fe780e44e553b33747676998b7f89dcb38aa8353 100644 (file)
@@ -78,7 +78,7 @@
     var offset       = this.options.offset
     var offsetTop    = offset.top
     var offsetBottom = offset.bottom
-    var scrollHeight = $('body').height()
+    var scrollHeight = $(document.body).height()
 
     if (typeof offset != 'object')         offsetBottom = offsetTop = offset
     if (typeof offsetTop == 'function')    offsetTop    = offset.top(this.$element)