Created
          August 8, 2013 11:38 
        
      - 
      
- 
        Save marcelofabianov/6183885 to your computer and use it in GitHub Desktop. 
Revisions
- 
        marcelofabianov created this gist Aug 8, 2013 .There are no files selected for viewingThis file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ function throttle( fn, time ) { var t = 0; return function() { var args = arguments, ctx = this; clearTimeout(t); t = setTimeout( function() { fn.apply( ctx, args ); }, time ); }; }