Moved last currentTime assignment to tick.
This commit is contained in:
committed by
Sheel Choksi
parent
c78fba4b13
commit
555d328cf2
@@ -11,6 +11,7 @@ getJasmineRequireObj().DelayedFunctionScheduler = function() {
|
|||||||
var endTime = currentTime + millis;
|
var endTime = currentTime + millis;
|
||||||
|
|
||||||
runScheduledFunctions(endTime);
|
runScheduledFunctions(endTime);
|
||||||
|
currentTime = endTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
self.scheduleFunction = function(funcToCall, millis, params, recurring, timeoutKey, runAtMillis) {
|
self.scheduleFunction = function(funcToCall, millis, params, recurring, timeoutKey, runAtMillis) {
|
||||||
@@ -137,8 +138,6 @@ getJasmineRequireObj().DelayedFunctionScheduler = function() {
|
|||||||
// scheduled in a funcToRun from forcing an extra iteration
|
// scheduled in a funcToRun from forcing an extra iteration
|
||||||
currentTime !== endTime &&
|
currentTime !== endTime &&
|
||||||
scheduledLookup[0] <= endTime);
|
scheduledLookup[0] <= endTime);
|
||||||
|
|
||||||
currentTime = endTime;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user