Commit e4d6fbf7 authored by Chris Rebert's avatar Chris Rebert
Browse files

Merge pull request #16023 from twbs/doc-body

Affix: $('body') => $(document.body)
parents 253dfc0d a5243ad3
Showing with 1 addition and 1 deletion
+1 -1
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
var offset = this.options.offset var offset = this.options.offset
var offsetTop = offset.top var offsetTop = offset.top
var offsetBottom = offset.bottom var offsetBottom = offset.bottom
var scrollHeight = $('body').height() var scrollHeight = $(document.body).height()
if (typeof offset != 'object') offsetBottom = offsetTop = offset if (typeof offset != 'object') offsetBottom = offsetTop = offset
if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element) if (typeof offsetTop == 'function') offsetTop = offset.top(this.$element)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment