Вопрос

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