Added a TODO to change loop event to looped and emit loop event when loop value changes

This commit is contained in:
Pavle Goloskokovic 2018-01-14 17:22:32 +01:00
parent 919d2d658a
commit 4b9c94ebbe

View file

@ -212,6 +212,7 @@ var HTML5AudioSound = new Class({
currentTime = this.audio.currentTime;
}
if (currentTime < this.previousTime) {
// TODO rename to looped and add loop for changing loop value
this.emit('loop', this);
}
this.previousTime = currentTime;