Skip to content

Commit 9767057

Browse files
committed
fix: fix spelling
1 parent 8dd7065 commit 9767057

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/foundation.smoothScroll.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class SmoothScroll extends Plugin {
3939
* @private
4040
*/
4141
_events() {
42-
this._linkClickListenner = this._handleLinkClick.bind(this);
43-
this.$element.on('click.zf.smoothScroll', this._linkClickListenner);
44-
this.$element.on('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListenner);
42+
this._linkClickListener = this._handleLinkClick.bind(this);
43+
this.$element.on('click.zf.smoothScroll', this._linkClickListener);
44+
this.$element.on('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListener);
4545
}
4646

4747
/**
@@ -98,8 +98,8 @@ class SmoothScroll extends Plugin {
9898
* @function
9999
*/
100100
_destroy() {
101-
this.$element.off('click.zf.smoothScroll', this._linkClickListenner)
102-
this.$element.off('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListenner);
101+
this.$element.off('click.zf.smoothScroll', this._linkClickListener)
102+
this.$element.off('click.zf.smoothScroll', 'a[href^="#"]', this._linkClickListener);
103103
}
104104
}
105105

0 commit comments

Comments
 (0)