From eeb096aa6253e04c2e4ba190cf153dbcade72d69 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Wed, 14 Nov 2018 16:42:52 +0000 Subject: [PATCH] Add missed .stopped method to Sticky Element --- app/assets/javascripts/stick-to-window-when-scrolling.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/stick-to-window-when-scrolling.js b/app/assets/javascripts/stick-to-window-when-scrolling.js index b3ad3774d..4f5df6025 100644 --- a/app/assets/javascripts/stick-to-window-when-scrolling.js +++ b/app/assets/javascripts/stick-to-window-when-scrolling.js @@ -36,6 +36,9 @@ StickyElement.prototype.unstop = function () { this._stopped = false; }; + StickyElement.prototype.stopped = function () { + return this._stopped; + }; // Stick elements to top of screen when you scroll past, documentation is in the README.md var Sticky = function (selector) {