Created
April 8, 2015 01:52
-
-
Save Fire-/68ba172be6eb0a9a1371 to your computer and use it in GitHub Desktop.
js ticker
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
var ticker = setTimeout(function tick() { | |
clearTimeout(ticker); | |
console.log('tick'); | |
ticker = setTimeout(tick, 1000); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment