Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2013 01:18
Show Gist options
  • Save anonymous/5044050 to your computer and use it in GitHub Desktop.
Save anonymous/5044050 to your computer and use it in GitHub Desktop.
trying to figure out how to use .call and .apply
$(function(){
$('#boxes li').on('click', function(){
self = $(this)
self.addClass('selected');
setTimeout.call(self, function(){
self.removeClass('selected');
}, 1000);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment