Skip to content

Instantly share code, notes, and snippets.

@jakearchibald
Created September 23, 2009 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakearchibald/192002 to your computer and use it in GitHub Desktop.
Save jakearchibald/192002 to your computer and use it in GitHub Desktop.
Function.prototype.delay = function(ms, obj) {
setTimeout(function() {
this.call(obj);
}, ms)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment