Skip to content

Instantly share code, notes, and snippets.

@artpolikarpov
Created January 27, 2014 11:39
Show Gist options
  • 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