Skip to content

Commit 419761d

Browse files
Added looped event docs
1 parent d9f6669 commit 419761d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ var HTML5AudioSound = new Class({
343343
currentTime = this.audio.currentTime;
344344
}
345345
if (currentTime < this.previousTime) {
346+
/**
347+
* @event Phaser.Sound.HTML5AudioSound#looped
348+
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
349+
*/
346350
this.emit('looped', this);
347351
}
348352
}

0 commit comments

Comments
 (0)