mirror of
https://github.com/photonstorm/phaser
synced 2024-12-12 06:12:53 +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) {
|
if (this.audio) {
|
||||||
this.audio.loop = value;
|
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);
|
this.emit('loop', this, value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue