Created
September 15, 2014 13:43
-
-
Save arjankuijpers/1006ea741ab1584224f4 to your computer and use it in GitHub Desktop.
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 async(your_function, callback) { | |
setTimeout(function() { | |
your_function(); | |
if (callback) {callback();} | |
}, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment