The BaseSound.destroy method will now call BaseSound.stop which will reset the isPlaying and other flags. Fix #6645

This commit is contained in:
Richard Davey 2023-11-08 16:26:35 +00:00
parent 6796de40e6
commit 494ea72108

View file

@ -477,6 +477,8 @@ var BaseSound = new Class({
return;
}
this.stop();
this.emit(Events.DESTROY, this);
this.removeAllListeners();