]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use pull request #11076 from ncoden/fix/magellan-href-reference for v6.5.0
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 16 Jun 2018 07:28:03 +0000 (09:28 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 16 Jun 2018 07:28:03 +0000 (09:28 +0200)
54c939d36 fix: fix reference to component in `Magellan._events`

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
js/foundation.magellan.js

index 93ae3306fe14c8c78de95efdf2c87f1f383da30f..ed43448598bf6c76fa1d611cfb13f570c9966c65 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);
         });
       });