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