diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index d5daec634..32c560690 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -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); } });