Skip to content

Commit

Permalink
fixed bug with calling run function with saved args
Browse files Browse the repository at this point in the history
  • Loading branch information
BelirafoN authored and BelirafoN committed May 25, 2016
1 parent 99109d7 commit bbb7af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/throttle.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function throttle(delay, callback, context, lastCall){
setTimeout(() => {
isIdle = false;
if(callParams && lastCall){
run.apply(Array.from(callParams));
run.apply(callParams[0], callParams[1]);
}
callParams = null;
}, delay);
Expand Down

0 comments on commit bbb7af8

Please sign in to comment.