We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 923ac40 commit eec19e1Copy full SHA for eec19e1
1 file changed
src/sound/html5/HTML5AudioSoundManager.js
@@ -235,8 +235,10 @@ var HTML5AudioSoundManager = new Class({
235
sound.totalDuration = sound.tags[0].duration;
236
});
237
238
- this.lockedActionsQueue.forEach(function (lockedAction)
+ while(this.lockedActionsQueue.length)
239
{
240
+ var lockedAction = this.lockedActionsQueue.shift();
241
+
242
if (lockedAction.sound[lockedAction.prop].apply)
243
244
lockedAction.sound[lockedAction.prop].apply(lockedAction.sound, lockedAction.value || []);
@@ -245,7 +247,7 @@ var HTML5AudioSoundManager = new Class({
245
247
246
248
lockedAction.sound[lockedAction.prop] = lockedAction.value;
249
}
- });
250
+ }
251
252
}, this);
253
0 commit comments