Skip to content

Fix destroy event not firing#1304

Open
gpoole wants to merge 2 commits intometafizzy:masterfrom
gpoole:fix-destroy-event-not-firing
Open

Fix destroy event not firing#1304
gpoole wants to merge 2 commits intometafizzy:masterfrom
gpoole:fix-destroy-event-not-firing

Conversation

@gpoole
Copy link

@gpoole gpoole commented May 9, 2024

The destroy event was effectively not firing due to allOff being called and removing any destroy listeners before the event was emitted.

This change fixes that issue and introduces an assertion for the event being fired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant