Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: last timeout in queueTrigger() never clears map (#7964)
  • Loading branch information
gjanblaszczyk committed Oct 20, 2022
1 parent b58a220 commit e49286a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/event-target.js
Expand Up @@ -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;
Expand Down

0 comments on commit e49286a

Please sign in to comment.