mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
The BaseSound.destroy
method will now call BaseSound.stop
which will reset the isPlaying
and other flags. Fix #6645
This commit is contained in:
parent
6796de40e6
commit
494ea72108
1 changed files with 2 additions and 0 deletions
|
@ -477,6 +477,8 @@ var BaseSound = new Class({
|
|||
return;
|
||||
}
|
||||
|
||||
this.stop();
|
||||
|
||||
this.emit(Events.DESTROY, this);
|
||||
|
||||
this.removeAllListeners();
|
||||
|
|
Loading…
Reference in a new issue