Skip to content

Commit

Permalink
Use pull request foundation#11076 from ncoden/fix/magellan-href-refer…
Browse files Browse the repository at this point in the history
…ence for v6.5.0

54c939d fix: fix reference to component in `Magellan._events`

Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
  • Loading branch information
ncoden committed Jun 16, 2018
1 parent 7a627ac commit efd6ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/foundation.magellan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
});
});
Expand Down

0 comments on commit efd6ea0

Please sign in to comment.