Skip to content

Commit

Permalink
Merge pull request #11076 from ncoden/fix/magellan-href-reference
Browse files Browse the repository at this point in the history
fix: fix reference to component in `Magellan._events`
  • Loading branch information
ncoden authored Mar 21, 2018
2 parents 69e3a68 + 54c939d commit 1ce4021
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 1ce4021

Please sign in to comment.