From ae8363a3f3f83530bd95d07f509c09c2a2baa1c5 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Thu, 6 Dec 2018 20:51:20 -0500 Subject: [PATCH] Fix smoothscroll not applying custom options --- js/foundation.smoothScroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/foundation.smoothScroll.js b/js/foundation.smoothScroll.js index 0cd211fe1..a58d6c428 100644 --- a/js/foundation.smoothScroll.js +++ b/js/foundation.smoothScroll.js @@ -39,8 +39,8 @@ class SmoothScroll extends Plugin { * @private */ _events() { - this.$element.on('click.zf.smoothScroll', this._handleLinkClick) - this.$element.on('click.zf.smoothScroll', 'a[href^="#"]', this._handleLinkClick); + this.$element.on('click.zf.smoothScroll', this._handleLinkClick.bind(this)); + this.$element.on('click.zf.smoothScroll', 'a[href^="#"]', this._handleLinkClick.bind(this)); } /** -- 2.47.2