mirror of
https://github.com/photonstorm/phaser
synced 2024-12-11 13:56:16 +00:00
Added loop event docs
This commit is contained in:
parent
3de4234db8
commit
f3d2b9e510
1 changed files with 5 additions and 0 deletions
|
@ -557,6 +557,11 @@ Object.defineProperty(HTML5AudioSound.prototype, 'loop', {
|
|||
if (this.audio) {
|
||||
this.audio.loop = value;
|
||||
}
|
||||
/**
|
||||
* @event Phaser.Sound.HTML5AudioSound#loop
|
||||
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
|
||||
* @param {boolean} value - An updated value of Phaser.Sound.HTML5AudioSound#loop property.
|
||||
*/
|
||||
this.emit('loop', this, value);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue