Created
March 28, 2011 16:20
-
-
Save muloka/890761 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
(function(){ alert('later!'); }).delay(1); | |
// function is called 1 second later ^^ | |
Function.prototype.delay = function(seconds){ | |
setTimeout(this, seconds*1000); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment