Skip to content

Instantly share code, notes, and snippets.

@pnicholls
Created March 12, 2012 21:19
Show Gist options
  • Save pnicholls/2024742 to your computer and use it in GitHub Desktop.
Save pnicholls/2024742 to your computer and use it in GitHub Desktop.
$ ->
$(".app_url").data("timeout", null).keyup ->
url = $(this).val()
clearTimeout $(this).data("timeout")
$(this).data "timeout", setTimeout(checkForValidUrl(url), 10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment