@xuda.io/runtime-bundle 1.0.1051 → 1.0.1052

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.
@@ -12666,9 +12666,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12666
12666
  // $elm.remove();
12667
12667
  // nodeP.xu_render_made = true;
12668
12668
 
12669
- return { xu_render_in_process: true };
12669
+ return { has_xu_render_attribute: true, xu_render_in_process: true };
12670
12670
  }
12671
- return {};
12671
+ return { has_xu_render_attribute: true };
12672
12672
  };
12673
12673
 
12674
12674
  const post_render = async function () {
@@ -14819,16 +14819,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14819
14819
  }
14820
14820
  const done = async function (ret = {}) {
14821
14821
  if (glb.new_xu_render) {
14822
- const xu_ui_id = $div.attr('xu-ui-id');
14823
- if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
14824
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
14825
- }
14826
- const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
14827
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
14828
- nodeP.xu_render_xu_ui_id = xu_ui_id;
14829
- nodeP.xu_render_cache_id = xu_render_cache_id;
14830
- if (ret.xu_render_in_process) {
14831
- return $div;
14822
+ if (ret.has_xu_render_attribute) {
14823
+ const xu_ui_id = $div.attr('xu-ui-id');
14824
+ if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
14825
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
14826
+ }
14827
+ const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
14828
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
14829
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
14830
+ nodeP.xu_render_cache_id = xu_render_cache_id;
14831
+ if (ret.xu_render_in_process) {
14832
+ return $div;
14833
+ } else {
14834
+ $container.append(temp_$container.children());
14835
+ return $div;
14836
+ }
14832
14837
  } else {
14833
14838
  $container.append(temp_$container.children());
14834
14839
  return $div;
@@ -10391,9 +10391,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10391
10391
  // $elm.remove();
10392
10392
  // nodeP.xu_render_made = true;
10393
10393
 
10394
- return { xu_render_in_process: true };
10394
+ return { has_xu_render_attribute: true, xu_render_in_process: true };
10395
10395
  }
10396
- return {};
10396
+ return { has_xu_render_attribute: true };
10397
10397
  };
10398
10398
 
10399
10399
  const post_render = async function () {
@@ -12544,16 +12544,21 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12544
12544
  }
12545
12545
  const done = async function (ret = {}) {
12546
12546
  if (glb.new_xu_render) {
12547
- const xu_ui_id = $div.attr('xu-ui-id');
12548
- if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
12549
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
12550
- }
12551
- const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12552
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
12553
- nodeP.xu_render_xu_ui_id = xu_ui_id;
12554
- nodeP.xu_render_cache_id = xu_render_cache_id;
12555
- if (ret.xu_render_in_process) {
12556
- return $div;
12547
+ if (ret.has_xu_render_attribute) {
12548
+ const xu_ui_id = $div.attr('xu-ui-id');
12549
+ if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
12550
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
12551
+ }
12552
+ const xu_render_cache_id = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
12553
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][xu_render_cache_id] = { $div: $div.clone(true) };
12554
+ nodeP.xu_render_xu_ui_id = xu_ui_id;
12555
+ nodeP.xu_render_cache_id = xu_render_cache_id;
12556
+ if (ret.xu_render_in_process) {
12557
+ return $div;
12558
+ } else {
12559
+ $container.append(temp_$container.children());
12560
+ return $div;
12561
+ }
12557
12562
  } else {
12558
12563
  $container.append(temp_$container.children());
12559
12564
  return $div;