Commit 3b49c17c by David Baumgold

Merge pull request #3382 from TheJJ/patch-1

fixed retry invokation for calling setState
parents 9d9f28da 3de30aba
......@@ -139,3 +139,4 @@ Raees Chachar <raees.chachar@arbisoft.com>
Muhammad Ammar <muhammad.ammar@arbisoft.com>
William Desloge <william.desloge@ionis-group.com>
Marco Re <mrc.re@tiscali.it>
Jonas Jelten <jelten@in.tum.de>
......@@ -156,7 +156,7 @@ var JSInput = (function ($, undefined) {
// only application that has ever used JSInput, jsVGL. Something
// more sturdy should be put in place.
function whileloop(n) {
if (n < 5){
if (n > 0){
try {
if (sop) {
_deepKey(cWindow, stateSetter)(stateValue);
......@@ -169,14 +169,14 @@ var JSInput = (function ($, undefined) {
});
}
} catch (err) {
setTimeout(whileloop(n+1), 200);
setTimeout(function() { whileloop(n - 1); }, 200);
}
}
else {
console.debug("Error: could not set state");
}
}
whileloop(0);
whileloop(5);
}
}
......@@ -217,4 +217,4 @@ var JSInput = (function ($, undefined) {
walkDOM: walkDOM
};
})(window.jQuery);
\ No newline at end of file
})(window.jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment