Skip to content

Commit

Permalink
Affix: $('body') => $(document.body)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Mar 9, 2015
1 parent 253dfc0 commit a5243ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5243ad

Please sign in to comment.