Added ended event docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:05:34 +01:00
parent 7945ebaec8
commit 3581b0bdb2

View file

@ -322,6 +322,10 @@ var WebAudioSound = new Class({
this.hasEnded = false;
BaseSound.prototype.stop.call(this);
this.stopAndRemoveBufferSource();
/**
* @event Phaser.Sound.WebAudioSound#ended
* @param {Phaser.Sound.WebAudioSound} sound - Reference to the sound that emitted event.
*/
this.emit('ended', this);
}
else if (this.hasLooped) {