Added destroy method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-07 22:34:25 +01:00
parent 457789df64
commit a4b243cb09

View file

@ -319,6 +319,12 @@ var WebAudioSound = new Class({
this.events.dispatch(new SoundEvent(this, 'SOUND_LOOP'));
}
},
/**
* Calls Phaser.Sound.BaseSound#destroy method
* and cleans up all Web Audio API related stuff.
*
* @method Phaser.Sound.WebAudioSound#destroy
*/
destroy: function () {
BaseSound.prototype.destroy.call(this);
this.audioBuffer = null;