ko.utils.setTimeout to native setTimeout

This commit is contained in:
djmaze 2021-09-28 13:45:19 +02:00
parent 9014f08f35
commit 5cb4d338a1
5 changed files with 7 additions and 9 deletions

View file

@ -216,7 +216,7 @@ var computedFn = {
throttleEvaluationTimeout = computedObservable['throttleEvaluation'];
if (throttleEvaluationTimeout && throttleEvaluationTimeout >= 0) {
clearTimeout(this[computedState].evaluationTimeoutInstance);
this[computedState].evaluationTimeoutInstance = ko.utils.setTimeout(() =>
this[computedState].evaluationTimeoutInstance = setTimeout(() =>
computedObservable.evaluateImmediate(true /*notifyChange*/)
, throttleEvaluationTimeout);
} else if (computedObservable._evalDelayed) {