Remove .sort() and fix logic in test

This commit is contained in:
Michael Leaney
2018-01-02 14:51:51 +08:00
parent 516e00d7ba
commit 1136fddcde
2 changed files with 11 additions and 11 deletions

View File

@@ -129,9 +129,7 @@ getJasmineRequireObj().DelayedFunctionScheduler = function() {
currentTime = newCurrentTime;
var funcsToRun = scheduledFunctions[currentTime].sort(function (a, b) {
return a.millis > b.millis;
});
var funcsToRun = scheduledFunctions[currentTime];
delete scheduledFunctions[currentTime];