Skip to content

Commit

Permalink
Merge branch 'andreimoment-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Sep 17, 2014
2 parents 3d36011 + ac87b62 commit f398593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/fixed-responsive-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
// Highlight active link on the navigation
var selectActiveMenuItem = function (i) {
forEach(links, function (i, el) {
links[i].parentNode.className = "";
links[i].parentNode.className = links[i].parentNode.className.replace(/[\s]{0,}active/, '');
});
links[i].parentNode.className = "active";
links[i].parentNode.className += links[i].parentNode.className ? " active" : "active";
};

// Highlight active link when scrolling
Expand Down

0 comments on commit f398593

Please sign in to comment.