Skip to content

Instantly share code, notes, and snippets.

@artpolikarpov
Created January 27, 2014 11:39
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 artpolikarpov/8647098 to your computer and use it in GitHub Desktop.
Save artpolikarpov/8647098 to your computer and use it in GitHub Desktop.
$(document).on('click', '.js-aims', function () {
setAim($(this).attr('data-aim'));
});
$(document).ready(function() {
var aims = $('.js-aims');
if (aims.length > 0) {
aims.click(function () {
setAim($(this).attr('data-aim'));
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment