Skip to content

Instantly share code, notes, and snippets.

@caromill
Last active December 12, 2015 03:48
Show Gist options
  • Save caromill/4709404 to your computer and use it in GitHub Desktop.
Save caromill/4709404 to your computer and use it in GitHub Desktop.
An example for the .data(name [, value]) function in tire.js
$('.modal').data('options', { triggers: ['.show-modal', '.hide-modal'] });
<div class="modal" data-options='{"triggers":[".show-modal",".hide-modal"]}'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment