Open gpoole opened 2 months ago
The destroy event was effectively not firing due to allOff being called and removing any destroy listeners before the event was emitted.
destroy
allOff
This change fixes that issue and introduces an assertion for the event being fired.
The
destroy
event was effectively not firing due toallOff
being called and removing anydestroy
listeners before the event was emitted.This change fixes that issue and introduces an assertion for the event being fired.