문제

How do I re-init the Foundation Magellan plugin? I need to do that, because the magellan is located inside a tab, and I need to re-init 'magellan-top-offset' once the tab has been opened.

$(document).foundation('magellan', 'init'); doesn't do the trick...

도움이 되었습니까?

해결책

OK, so the problem was stupid as ever, actually the full module's name is magellan-expedition, not magellan.

So the correct code that does the trick is this:

$(document).foundation('magellan-expedition','set_expedition_position');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top