From a5243ad3d0a380c7c40c984f21200ca9932e43b8 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 9 Mar 2015 06:43:41 -0700 Subject: [PATCH] Affix: $('body') => $(document.body) --- js/affix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)