@xuda.io/runtime-bundle 1.0.475 → 1.0.476

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.
@@ -9097,7 +9097,12 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
9097
9097
  SYS_GLOBAL_OBJ_REFS[ref_field_id].props = _ds.in_parameters || {};
9098
9098
 
9099
9099
  if ($elm) {
9100
- const attributes = $elm?.data()?.xuPanelWrapper?.panelXuAttributes || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
9100
+ const get_attributes = function (retry = 0) {
9101
+ if (retry > 50) return;
9102
+ $elm?.data()?.xuPanelWrapper?.panelXuAttributes || $elm?.data()?.xuData?.debug_info?.attribute_stat || get_attributes(retry + 1);
9103
+ };
9104
+
9105
+ const attributes = get_attributes();
9101
9106
  SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
9102
9107
  SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
9103
9108
  }
@@ -9098,7 +9098,12 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
9098
9098
  SYS_GLOBAL_OBJ_REFS[ref_field_id].props = _ds.in_parameters || {};
9099
9099
 
9100
9100
  if ($elm) {
9101
- const attributes = $elm?.data()?.xuPanelWrapper?.panelXuAttributes || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
9101
+ const get_attributes = function (retry = 0) {
9102
+ if (retry > 50) return;
9103
+ $elm?.data()?.xuPanelWrapper?.panelXuAttributes || $elm?.data()?.xuData?.debug_info?.attribute_stat || get_attributes(retry + 1);
9104
+ };
9105
+
9106
+ const attributes = get_attributes();
9102
9107
  SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
9103
9108
  SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
9104
9109
  }