@xuda.io/runtime-bundle 1.0.688 → 1.0.689

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.
@@ -11855,10 +11855,15 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
11855
11855
  let elm_to_delete = [];
11856
11856
  const ts = Date.now();
11857
11857
  $.each($elm.find('*'), function (key, val) {
11858
- let new_id = $(val).attr('xu-ui-id') + ts;
11859
- elm_to_delete.push(new_id);
11858
+ let xu_ui_id = $(val).attr('xu-ui-id');
11859
+ if (xu_ui_id) {
11860
+ let new_id = xu_ui_id + ts;
11861
+ elm_to_delete.push(new_id);
11860
11862
 
11861
- $(val).attr('xu-ui-id', new_id).removeData();
11863
+ $(val).attr('xu-ui-id', new_id).removeData();
11864
+ } else {
11865
+ $(val).remove();
11866
+ }
11862
11867
  });
11863
11868
 
11864
11869
  // $elm.empty();
@@ -9577,10 +9577,15 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9577
9577
  let elm_to_delete = [];
9578
9578
  const ts = Date.now();
9579
9579
  $.each($elm.find('*'), function (key, val) {
9580
- let new_id = $(val).attr('xu-ui-id') + ts;
9581
- elm_to_delete.push(new_id);
9580
+ let xu_ui_id = $(val).attr('xu-ui-id');
9581
+ if (xu_ui_id) {
9582
+ let new_id = xu_ui_id + ts;
9583
+ elm_to_delete.push(new_id);
9582
9584
 
9583
- $(val).attr('xu-ui-id', new_id).removeData();
9585
+ $(val).attr('xu-ui-id', new_id).removeData();
9586
+ } else {
9587
+ $(val).remove();
9588
+ }
9584
9589
  });
9585
9590
 
9586
9591
  // $elm.empty();