vendor/assets/javascripts/affix.js in active_frontend-2.0.10 vs vendor/assets/javascripts/affix.js in active_frontend-2.0.11

- old
+ new

@@ -10,18 +10,18 @@ this.$target = $(this.options.target) .on('scroll.bs.affix.data-api', $.proxy(this.checkPosition, this)) .on('click.bs.affix.data-api', $.proxy(this.checkPositionWithEventLoop, this)) this.$element = $(element) - this.affixed = null - this.unpin = null + this.affixed = + this.unpin = this.pinnedOffset = null this.checkPosition() } - Affix.VERSION = '3.3.4' + Affix.VERSION = '3.3.2' 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 = $(document.body).height() + var scrollHeight = $('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