Added looped event docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 15:24:25 +01:00
parent d9f6669277
commit 419761db15

View file

@ -343,6 +343,10 @@ var HTML5AudioSound = new Class({
currentTime = this.audio.currentTime;
}
if (currentTime < this.previousTime) {
/**
* @event Phaser.Sound.HTML5AudioSound#looped
* @param {Phaser.Sound.HTML5AudioSound} sound - Reference to the sound that emitted event.
*/
this.emit('looped', this);
}
}