Added destroy method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:19:32 +01:00
parent 32a2bcbf85
commit 4d5720d094

View file

@ -338,6 +338,12 @@ var HTML5AudioSound = new Class({
}
this.previousTime = currentTime;
},
/**
* Calls Phaser.Sound.BaseSound#destroy method
* and cleans up all HTML5 Audio related stuff.
*
* @method Phaser.Sound.HTML5AudioSound#destroy
*/
destroy: function () {
BaseSound.prototype.destroy.call(this);
this.tags = null;