From e49286a81cf30969f5dd8d739c6740bc07e3bc00 Mon Sep 17 00:00:00 2001 From: Grzegorz Blaszczyk Date: Fri, 21 Oct 2022 00:10:50 +0200 Subject: [PATCH] fix: last timeout in queueTrigger() never clears map (#7964) --- 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 84efd793b..479ffe249 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;