From: Chris Rebert Date: Mon, 9 Mar 2015 13:43:41 +0000 (-0700) Subject: Affix: $('body') => $(document.body) X-Git-Tag: v3.3.4~21^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16023%2Fhead;p=thirdparty%2Fbootstrap.git Affix: $('body') => $(document.body) --- diff --git a/js/affix.js b/js/affix.js index 59584ec855..fe780e44e5 100644 --- a/js/affix.js +++ b/js/affix.js @@ -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)