Skip to content

Instantly share code, notes, and snippets.

@reecefowell
Last active August 4, 2016 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reecefowell/4357386 to your computer and use it in GitHub Desktop.
Save reecefowell/4357386 to your computer and use it in GitHub Desktop.
$(this).select2({
tags: $(this).data('tag-license-table'),
tokenSeparators: [",", " "]
})
// values go between braces, and have looking format
// i.e key: value
Here is a longer example with deeper nesting
$(this).foobar({
defaults: {
interval: 10000,
seconds: {
inMinute: 60,
inHour: (60 * 60),
inDay: (60 * 60 * 24),
inWeek: (60 * 60 * 24 * 7),
inMonth: (60 * 60 * 24 * 7 * 4),
inYear: (60 * 60 * 24 * 365)
}
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment