Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created June 16, 2010 15:26
Show Gist options
  • Save gavinblair/440848 to your computer and use it in GitHub Desktop.
Save gavinblair/440848 to your computer and use it in GitHub Desktop.
//if animations crash due to excessive tapping, refresh the page
var crashchecker = setInterval(function(){
if ($(".current").length == 0) {
window.location="/";
clearInterval(crashchecker);
}
}, 500);
@SeanJA
Copy link

SeanJA commented Jun 16, 2010

Thats kinds lame... I guess your way makes sense then, but I think I would do $('body') instead just because then I don't have to go changing it for each project / page / whatever...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment