Created
April 28, 2011 03:09
-
-
Save ginpei/945726 to your computer and use it in GitHub Desktop.
Easy non-blocking looping
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
(function() { | |
// any codes | |
$('#time').text(new Date().toString()); | |
// call own self | |
var INTERVAL = 10; | |
setTimeout(arguments.callee, INTERVAL); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment