public
Created

  • Download Gist
timeout.js
JavaScript
1 2 3 4 5 6 7
Foo = {};
 
Foo.bar = function(){
alert("test");
}
 
setTimeout(Foo.bar, 1000); // 1 second later, alert's "test"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.