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

js/foundation.magellan.js

index d41a5ea10ae65b96fa26e405e2a8ef80373f69eb..471728804566d49c694e491b5408c9ad03089374 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);
         });
       });