From 31237adaa89f2a8cb0e8800aba7af2377f6cb4fa Mon Sep 17 00:00:00 2001 From: Grzegorz Blaszczyk Date: Tue, 18 Oct 2022 17:42:11 +0200 Subject: [PATCH] fix: last timeout in queueTrigger() never clears map --- src/js/event-target.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/event-target.js b/src/js/event-target.js index 84efd793be..479ffe2498 100644 --- a/src/js/event-target.js +++ b/src/js/event-target.js @@ -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;