Implemented destroy method for HTML5AudioSoundManager class

This commit is contained in:
Pavle Goloskokovic 2018-01-08 19:29:16 +01:00
parent 4d768c1c6a
commit 5fcdca241b

View file

@ -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;