mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Added ended event docs
This commit is contained in:
parent
7945ebaec8
commit
3581b0bdb2
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue