]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: fix reference to component in `Magellan._events` 11158/head
authorNicolas Coden <nicolas@ncoden.fr>
Sun, 18 Mar 2018 20:36:06 +0000 (21:36 +0100)
committerNicolas Coden <nicolas@ncoden.fr>
Tue, 10 Apr 2018 21:34:46 +0000 (23:34 +0200)
Bug introduced in https://github.com/zurb/foundation-sites/pull/10988 (6371c6da3de11adf3dce181ec5b7cd5959fe5f8d)

js/foundation.magellan.js

index 3732e9967dc5fa69aa036854cb920c99aa163afc..512e3f570e02062c4bd72ae6f277bd60c005cff3 100644 (file)
@@ -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);
         });
       });