mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
fix: last timeout in queueTrigger() never clears map (#7964)
This commit is contained in:
parent
b58a2201c4
commit
e49286a81c
@ -196,6 +196,7 @@ EventTarget.prototype.queueTrigger = function(event) {
|
||||
window.clearTimeout(oldTimeout);
|
||||
|
||||
const timeout = window.setTimeout(() => {
|
||||
map.delete(type);
|
||||
// if we cleared out all timeouts for the current target, delete its map
|
||||
if (map.size === 0) {
|
||||
map = null;
|
||||
|
Loading…
Reference in New Issue
Block a user