mirror of
https://github.com/photonstorm/phaser
synced 2024-12-03 18:10:10 +00:00
Added looped event docs
This commit is contained in:
parent
d9f6669277
commit
419761db15
1 changed files with 4 additions and 0 deletions
|
@ -343,6 +343,10 @@ var HTML5AudioSound = new Class({
|
||||||
currentTime = this.audio.currentTime;
|
currentTime = this.audio.currentTime;
|
||||||
}
|
}
|
||||||
if (currentTime < this.previousTime) {
|
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);
|
this.emit('looped', this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue