Skip to content

Instantly share code, notes, and snippets.

@SamuelDavis
Created May 13, 2014 01:16
Show Gist options
  • Save SamuelDavis/b0058087e2a0626dbcba to your computer and use it in GitHub Desktop.
Save SamuelDavis/b0058087e2a0626dbcba to your computer and use it in GitHub Desktop.
David Walsh's minified Debounce JS method: http://davidwalsh.name/javascript-debounce-function
function debounce(a,b,c){var d;return function(){var e=this,f=arguments;clearTimeout(d),d=setTimeout(function(){d=null,c||a.apply(e,f)},b),c&&!d&&a.apply(e,f)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment