Skip to content

Instantly share code, notes, and snippets.

@sebyx07
Created December 8, 2015 13:36
Show Gist options
  • Save sebyx07/5b22af891866909bcf29 to your computer and use it in GitHub Desktop.
Save sebyx07/5b22af891866909bcf29 to your computer and use it in GitHub Desktop.
if the text changes
starts the a timeout in 2 seconds to save
if 2 seconds has passed without changes
it saves
else clears the timeout and starts again the timeout in 2 secs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment