Skip to content

Commit e49286a

Browse files
fix: last timeout in queueTrigger() never clears map (#7964)
1 parent b58a220 commit e49286a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/js/event-target.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ EventTarget.prototype.queueTrigger = function(event) {
196196
window.clearTimeout(oldTimeout);
197197

198198
const timeout = window.setTimeout(() => {
199+
map.delete(type);
199200
// if we cleared out all timeouts for the current target, delete its map
200201
if (map.size === 0) {
201202
map = null;

0 commit comments

Comments
 (0)