@xuda.io/runtime-bundle 1.0.995 → 1.0.996

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.
@@ -24682,6 +24682,7 @@ var UI_WORKER_OBJ = {
24682
24682
  num: 9000,
24683
24683
  cache: {},
24684
24684
  viewport_height_set_ids: [],
24685
+ xu_render_cache: {},
24685
24686
  // pending_for_viewport_render: {}
24686
24687
  };
24687
24688
 
@@ -32356,19 +32357,17 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32356
32357
  }
32357
32358
  return;
32358
32359
  }
32359
- // if (!value) {
32360
+
32361
+ /////////// !value ///////////
32362
+
32360
32363
  if ($elm.prop('tagName') === 'XURENDER') {
32361
32364
  func.events.delete_job(SESSION_ID, jobNoP);
32362
32365
  return;
32363
32366
  }
32364
32367
 
32365
32368
  let tmp_$div = $('<div>');
32366
-
32367
- let $xurender = $('<xurender>')
32368
- // .attr('xu-ui-id', $elm.data().xuData.node.id + '_' + $elm.data().xuData.recordid)
32369
- .attr('xu-ui-id', $elm.attr('xu-ui-id'))
32370
- .appendTo(tmp_$div)
32371
- .hide();
32369
+ const xu_ui_id = $elm.attr('xu-ui-id');
32370
+ let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
32372
32371
  // // was true before
32373
32372
  // if ($elm.data().xuData.xurender_node) {
32374
32373
  // $xurender.data({
@@ -32390,10 +32389,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32390
32389
  };
32391
32390
 
32392
32391
  $xurender.data().xuData.original_data_obj = original_data_obj;
32392
+
32393
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = original_data_obj;
32394
+
32393
32395
  // }
32394
32396
  $elm.replaceWith(tmp_$div.children());
32395
32397
  func.events.delete_job(SESSION_ID, jobNoP);
32396
- // }
32397
32398
  };
32398
32399
  if (is_init) {
32399
32400
  return init_render();