mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Implemented destroy method for HTML5AudioSoundManager class
This commit is contained in:
parent
4d768c1c6a
commit
5fcdca241b
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ var HTML5AudioSoundManager = new Class({
|
|||
sound.resume();
|
||||
});
|
||||
this.onBlurPausedSounds.length = 0;
|
||||
},
|
||||
destroy: function () {
|
||||
BaseSoundManager.prototype.destroy.call(this);
|
||||
this.onBlurPausedSounds.length = 0;
|
||||
this.onBlurPausedSounds = null;
|
||||
}
|
||||
});
|
||||
module.exports = HTML5AudioSoundManager;
|
||||
|
|
Loading…
Add table
Reference in a new issue