Sorting actions to be performed in chronological order

This commit is contained in:
Pavle Goloskokovic 2018-01-17 17:35:33 +01:00
parent d8e36615e7
commit 04b9996ac7

View file

@ -136,6 +136,9 @@ var HTML5AudioSoundManager = new Class({
allSoundsTouchLockedActionQueue_1.push(touchLockedAction);
});
});
allSoundsTouchLockedActionQueue_1.sort(function (tla1, tla2) {
return tla1.time - tla2.time;
});
allSoundsTouchLockedActionQueue_1.forEach(function (touchLockedAction) {
switch (touchLockedAction.type) {
case 'method':