Added loop event docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:25:59 +01:00
parent 3de4234db8
commit f3d2b9e510

View file

@ -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);
}
});