From 9767057c27e3e7c683911f15f4a12c7aa38244b8 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Fri, 7 Dec 2018 17:11:31 -0500 Subject: [PATCH] fix: fix spelling --- js/foundation.smoothScroll.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/foundation.smoothScroll.js b/js/foundation.smoothScroll.js index 6280c39ec..d122bcd7c 100644 --- a/js/foundation.smoothScroll.js +++ b/js/foundation.smoothScroll.js @@ -39,9 +39,9 @@ class SmoothScroll extends Plugin { * @private */ _events() { - this._linkClickListenner = this._handleLinkClick.bind(this); - this.$element.on('click.zf.smoothScroll', this._linkClickListenner); - this.$element.on('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListenner); + this._linkClickListener = this._handleLinkClick.bind(this); + this.$element.on('click.zf.smoothScroll', this._linkClickListener); + this.$element.on('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListener); } /** @@ -98,8 +98,8 @@ class SmoothScroll extends Plugin { * @function */ _destroy() { - this.$element.off('click.zf.smoothScroll', this._linkClickListenner) - this.$element.off('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListenner); + this.$element.off('click.zf.smoothScroll', this._linkClickListener) + this.$element.off('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListener); } } -- 2.47.2