Skip to content

Instantly share code, notes, and snippets.

@leonardreidy
Created November 11, 2013 16:15
Show Gist options
  • Save leonardreidy/7415776 to your computer and use it in GitHub Desktop.
Save leonardreidy/7415776 to your computer and use it in GitHub Desktop.
Testing new GistBox Clipper
function throttle( fn, time ) {
var t = 0;
return function() {
var args = arguments, ctx = this;
clearTimeout(t);
t = setTimeout( function() {
fn.apply( ctx, args );
}, time );
};
}
Copy link

ghost commented Aug 2, 2015

craftsy

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