Created
August 14, 2012 14:29
-
-
Save keithelliott/3349745 to your computer and use it in GitHub Desktop.
using setTimeout
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
// When using setTimeout, use one of the following patterns | |
//ex1 | |
var fn1 = function(){ | |
// do something | |
}; | |
setTimeout(fn1, 0); | |
//ex2 | |
setTimeout(function(){ fn1;}, 0); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment