Emitting loop event when sound loop setting value changes

This commit is contained in:
Pavle Goloskokovic 2018-01-14 17:38:33 +01:00
parent 8f692b8fb9
commit 846aefd7c1

View file

@ -327,6 +327,7 @@ Object.defineProperty(HTML5AudioSound.prototype, 'loop', {
if (this.audio) {
this.audio.loop = value;
}
this.emit('loop', this, value);
}
});
module.exports = HTML5AudioSound;