Skip to content

Instantly share code, notes, and snippets.

@jeremyckahn
Created December 20, 2013 16:43
Show Gist options
  • Select an option

  • Save jeremyckahn/8057569 to your computer and use it in GitHub Desktop.

Select an option

Save jeremyckahn/8057569 to your computer and use it in GitHub Desktop.
If at first you don't succeed...
function tryAgain (fn) {
try {
fn();
} catch (e) {
tryAgain(fn);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment