diff options
| author | Chris Rebert <[email protected]> | 2015-03-09 06:58:03 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-03-09 06:58:03 -0700 |
| commit | e4d6fbf715e81717f12cef9f181c7dfa3430cb87 (patch) | |
| tree | 44020dde37ece5b346a5b18d800eacd66a37353a | |
| parent | 253dfc0d3d824375d6119a78e76a676d91141ebe (diff) | |
| parent | a5243ad3d0a380c7c40c984f21200ca9932e43b8 (diff) | |
| download | bootstrap-e4d6fbf715e81717f12cef9f181c7dfa3430cb87.tar.xz bootstrap-e4d6fbf715e81717f12cef9f181c7dfa3430cb87.zip | |
Merge pull request #16023 from twbs/doc-body
Affix: $('body') => $(document.body)
| -rw-r--r-- | js/affix.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js index 59584ec85..fe780e44e 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) |
