Fixed DelayedFunctionScheduler IE 8 compatibility issue

This commit is contained in:
Steve Gravrock
2018-01-02 18:17:23 -08:00
parent f69949ebc0
commit cb6de64e58
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().DelayedFunctionScheduler = function() {
getJasmineRequireObj().DelayedFunctionScheduler = function(j$) {
function DelayedFunctionScheduler() {
var self = this;
var scheduledLookup = [];
@@ -140,7 +140,7 @@ getJasmineRequireObj().DelayedFunctionScheduler = function() {
});
forEachFunction(funcsToRun, function(funcToRun) {
if (deletedKeys.indexOf(funcToRun.timeoutKey) !== -1) {
if (j$.util.arrayContains(deletedKeys, funcToRun.timeoutKey)) {
// skip a timeoutKey deleted whilst we were running
return;
}