Skip to content

Commit 70b723b

Browse files
committed
ES5 Style
1 parent 0180af7 commit 70b723b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

frontend/src/modules/scaffold/backboneFormsOverrides.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,14 @@ define([
6767
textAreaRender.call(this);
6868

6969
function until(conditionFunction) {
70-
const poll = resolve => {
71-
if(conditionFunction()) resolve();
72-
else setTimeout(_ => poll(resolve), 10);
70+
function poll(resolve) {
71+
if (conditionFunction()) {
72+
resolve();
73+
return;
74+
}
75+
setTimeout(function() {
76+
poll(resolve)
77+
}, 10);
7378
}
7479
return new Promise(poll);
7580
}

0 commit comments

Comments
 (0)