We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0180af7 commit 70b723bCopy full SHA for 70b723b
1 file changed
frontend/src/modules/scaffold/backboneFormsOverrides.js
@@ -67,9 +67,14 @@ define([
67
textAreaRender.call(this);
68
69
function until(conditionFunction) {
70
- const poll = resolve => {
71
- if(conditionFunction()) resolve();
72
- else setTimeout(_ => poll(resolve), 10);
+ function poll(resolve) {
+ if (conditionFunction()) {
+ resolve();
73
+ return;
74
+ }
75
+ setTimeout(function() {
76
+ poll(resolve)
77
+ }, 10);
78
}
79
return new Promise(poll);
80
0 commit comments