From a31a93a97a06d981f6fba21dae4b33396924349a Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sun, 18 Mar 2018 21:36:06 +0100 Subject: [PATCH] fix: fix reference to component in `Magellan._events` Bug introduced in https://github.com/zurb/foundation-sites/pull/10988 (6371c6da3de11adf3dce181ec5b7cd5959fe5f8d) --- js/foundation.magellan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/foundation.magellan.js b/js/foundation.magellan.js index 3732e9967..512e3f570 100644 --- a/js/foundation.magellan.js +++ b/js/foundation.magellan.js @@ -99,7 +99,7 @@ class Magellan extends Plugin { 'scrollme.zf.trigger': _this._updateActive.bind(_this) }).on('click.zf.magellan', 'a[href^="#"]', function(e) { e.preventDefault(); - var arrival = _this.getAttribute('href'); + var arrival = this.getAttribute('href'); _this.scrollToLoc(arrival); }); } else { @@ -109,7 +109,7 @@ class Magellan extends Plugin { 'scrollme.zf.trigger': _this._updateActive.bind(_this) }).on('click.zf.magellan', 'a[href^="#"]', function(e) { e.preventDefault(); - var arrival = _this.getAttribute('href'); + var arrival = this.getAttribute('href'); _this.scrollToLoc(arrival); }); }); -- 2.47.2