Skip to content

Commit bb9649f

Browse files
Fixed issue with targets and eventListeners array not matching in length due to splicing.
1 parent 792b249 commit bb9649f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Registry/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export default {
139139
// remove reference to the target when target has no event listeners registered
140140
if (Object.keys(registry.eventListeners[targetIndex]).length === 0) {
141141
registry.targets.splice(targetIndex)
142+
registry.eventListeners.splice(targetIndex)
142143
}
143144
} else {
144145
Log.error(

0 commit comments

Comments
 (0)