Created
September 17, 2013 06:12
-
-
Save denysonique/6590647 to your computer and use it in GitHub Desktop.
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
setTimout -> | |
$('#foo').fadeOut 200, -> | |
$('.bar').css background: 'red' | |
console.log 'done' | |
,1000 | |
# VS | |
delay = (ms, cb)-> setTimeout(cb, ms) | |
delay 1000, -> | |
$('#foo').fadeOut 200, -> | |
$('.bar').css background: 'red' | |
console.log 'done' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment