]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Fix magellan `_updateActive()` behavior. Fixes #8960 9066/head
authorMark Joshua Tan <mark.joshua.tan@gmail.com>
Fri, 29 Jul 2016 23:39:00 +0000 (07:39 +0800)
committerMark Joshua Tan <mark.joshua.tan@gmail.com>
Sat, 30 Jul 2016 03:10:18 +0000 (11:10 +0800)
commit2ea64b7a019afefa23ebe259360cc8e414e7acab
tree31f5700174a1110451ee8cc302c8cab060e27ba7
parent87f08d9ee4f99ec5bbc8f39d215f91a92630e849
Fix magellan `_updateActive()` behavior. Fixes #8960

When the links are not in the same order as the targets, or a link exists without a corresponding target, or several links with the same href are in a magellan container, the wrong link may get the .active class.
js/foundation.magellan.js
test/visual/magellan/unordered-links.html [new file with mode: 0644]