mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-27 17:50:24 +00:00
Merge pull request #16023 from twbs/doc-body
Affix: $('body') => $(document.body)
This commit is contained in:
commit
e4d6fbf715
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue