Skip to content

Commit f3d2b9e

Browse files
Added loop event docs
1 parent 3de4234 commit f3d2b9e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,11 @@ Object.defineProperty(HTML5AudioSound.prototype, 'loop', {
557557
if (this.audio) {
558558
this.audio.loop = value;
559559
}
560+
/**
561+
* @event Phaser.Sound.HTML5AudioSound#loop
562+
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
563+
* @param {boolean} value - An updated value of Phaser.Sound.HTML5AudioSound#loop property.
564+
*/
560565
this.emit('loop', this, value);
561566
}
562567
});

0 commit comments

Comments
 (0)