Created
February 27, 2013 01:18
-
-
Save anonymous/5044050 to your computer and use it in GitHub Desktop.
trying to figure out how to use .call and .apply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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