I have a problem setting options to Zurb Foundation component - joyride. I cannot seem to get it to set a cookieMonster variable and then don't show joyride next time.
Please note that I'm not using a standalone version of joyride but one bundled with Zurb Foundation 4 which seems to take arguments differently than standalone version.
html code (slim template, should be obvious)
ol(class="joyride-list" data-joyride)
li(data-id="draft" data-text="Next" data-options="tipLocation:bottom;")
h4 Welcome!
p Hello and welcome!
li(data-id="to_proofread" data-text="Next" data-options="tipLocation:right;")
h4 Proofreading
p Lorem ipsum.
and js:
$(document).foundation('joyride', 'start')
This setup actually works - as it displays joyride,and respects per tip options, but it completely ignores "cookieMonster" and "CookieDomain" options, and I cannot find any way to set those options. Tried experimenting, reading code (seems to be obfuscated on purpose), or debugging (again, very hard, lots of stuff is wrapped into private closures, so no way to get to it from JS console).