@xuda.io/runtime-bundle 1.0.789 → 1.0.790
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -13837,9 +13837,16 @@ func.UI.screen.execute_screen_ready_events = async function (SESSION_ID, paramsP
|
|
|
13837
13837
|
};
|
|
13838
13838
|
func.UI.screen.screen_loading_done = async function (SESSION_ID, paramsP, $div, jobNoP) {
|
|
13839
13839
|
// await
|
|
13840
|
-
|
|
13840
|
+
let retries = 0;
|
|
13841
13841
|
let interval = setInterval(() => {
|
|
13842
|
-
if (!$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${$div.attr('xu-ui-id')}]`).length && !$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-panel-wrapper-id=${$div.attr('xu-ui-id')}]`).length && $div.attr('xu-ui-id'))
|
|
13842
|
+
if (!$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${$div.attr('xu-ui-id')}]`).length && !$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-panel-wrapper-id=${$div.attr('xu-ui-id')}]`).length && $div.attr('xu-ui-id')) {
|
|
13843
|
+
retries++;
|
|
13844
|
+
if (retries > 100) {
|
|
13845
|
+
console.error('deadlock detected for screen ready');
|
|
13846
|
+
retries = 0;
|
|
13847
|
+
}
|
|
13848
|
+
return $div;
|
|
13849
|
+
}
|
|
13843
13850
|
|
|
13844
13851
|
clearInterval(interval);
|
|
13845
13852
|
|
|
@@ -11545,9 +11545,16 @@ func.UI.screen.execute_screen_ready_events = async function (SESSION_ID, paramsP
|
|
|
11545
11545
|
};
|
|
11546
11546
|
func.UI.screen.screen_loading_done = async function (SESSION_ID, paramsP, $div, jobNoP) {
|
|
11547
11547
|
// await
|
|
11548
|
-
|
|
11548
|
+
let retries = 0;
|
|
11549
11549
|
let interval = setInterval(() => {
|
|
11550
|
-
if (!$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${$div.attr('xu-ui-id')}]`).length && !$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-panel-wrapper-id=${$div.attr('xu-ui-id')}]`).length && $div.attr('xu-ui-id'))
|
|
11550
|
+
if (!$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${$div.attr('xu-ui-id')}]`).length && !$(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-panel-wrapper-id=${$div.attr('xu-ui-id')}]`).length && $div.attr('xu-ui-id')) {
|
|
11551
|
+
retries++;
|
|
11552
|
+
if (retries > 100) {
|
|
11553
|
+
console.error('deadlock detected for screen ready');
|
|
11554
|
+
retries = 0;
|
|
11555
|
+
}
|
|
11556
|
+
return $div;
|
|
11557
|
+
}
|
|
11551
11558
|
|
|
11552
11559
|
clearInterval(interval);
|
|
11553
11560
|
|