Skip to content

Commit ae8363a

Browse files
committed
Fix smoothscroll not applying custom options
1 parent c7a6f44 commit ae8363a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/foundation.smoothScroll.js

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

4646
/**

0 commit comments

Comments
 (0)