Created
May 13, 2014 01:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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