From 4b9c94ebbe52742df504b6062e66b1aaeabd3e3a Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 14 Jan 2018 17:22:32 +0100 Subject: [PATCH] Added a TODO to change loop event to looped and emit loop event when loop value changes --- src/sound/html5/HTML5AudioSound.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 118f54b2e..770ae8fa9 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -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;