Skip to content

Commit

Permalink
again with the debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Dec 12, 2023
1 parent e222665 commit 4b65bc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,9 @@ export class PlaylistController extends videojs.EventTarget {

return () => {
clearTimeout(timeoutId);
timeoutId = setTimeout(fn.apply(this), ONE_SECOND);
timeoutId = setTimeout(() => {
fn.apply(this);

Check warning on line 2455 in src/playlist-controller.js

View check run for this annotation

Codecov / codecov/patch

src/playlist-controller.js#L2452-L2455

Added lines #L2452 - L2455 were not covered by tests
}, ONE_SECOND);
};
};

Expand Down

0 comments on commit 4b65bc9

Please sign in to comment.