vendor/assets/javascripts/affix.js in active_frontend-1.0.11 vs vendor/assets/javascripts/affix.js in active_frontend-2.0.0

- old
+ new

@@ -17,11 +17,11 @@ this.pinnedOffset = null this.checkPosition() } - Affix.VERSION = '3.3.2' + Affix.VERSION = '3.3.4' Affix.RESET = 'affix affix-top affix-bottom' Affix.DEFAULTS = { offset: 0, @@ -67,10 +67,10 @@ var height = this.$element.height() 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) if (typeof offsetBottom == 'function') offsetBottom = offset.bottom(this.$element) \ No newline at end of file