mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +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;
|
this.hasEnded = false;
|
||||||
BaseSound.prototype.stop.call(this);
|
BaseSound.prototype.stop.call(this);
|
||||||
this.stopAndRemoveBufferSource();
|
this.stopAndRemoveBufferSource();
|
||||||
|
/**
|
||||||
|
* @event Phaser.Sound.WebAudioSound#ended
|
||||||
|
* @param {Phaser.Sound.WebAudioSound} sound - Reference to the sound that emitted event.
|
||||||
|
*/
|
||||||
this.emit('ended', this);
|
this.emit('ended', this);
|
||||||
}
|
}
|
||||||
else if (this.hasLooped) {
|
else if (this.hasLooped) {
|
||||||
|
|
Loading…
Reference in a new issue