-
-
Save eliperelman/1771974 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| person.eat(food, function() { | |
| if (typeof food === 'tacobell') { | |
| // Kinda yum... | |
| setInterval(function() { | |
| // Oh noes! | |
| // http://www.hulu.com/watch/10304/saturday-night-live-colon-blow | |
| colon.blow(); | |
| }, 120000); // 2 hrs. | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good choice on
setIntervaloversetTimeout, that function is never called just once.