Skip to content

Commit

Permalink
optional chanining for throttle
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimTanyalcin committed Nov 27, 2023
1 parent 8f64f32 commit e787185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collections/DOM/ch.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ const ch = new Cahir({
thisArg = thisArg ?? that;
if (resolver) {
timeout = setTimeout(() => {
resolver(f.apply(thisArg, args));
resolver?.(f.apply(thisArg, args));
resolver = prom = null;
}, delay);
return prom;
Expand Down

0 comments on commit e787185

Please sign in to comment.