@xuda.io/runtime-bundle 1.0.852 → 1.0.853

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.
@@ -11553,6 +11553,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
11553
11553
  }, 100);
11554
11554
  return;
11555
11555
  }
11556
+ UI_WORKER_OBJ.cache = {};
11556
11557
  const _session = SESSION_OBJ[SESSION_ID];
11557
11558
  if (_session.engine_mode === 'live_preview') {
11558
11559
  console.info('========= xu-attributes refresh info ==============');
@@ -12006,6 +12007,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
12006
12007
  }
12007
12008
  }
12008
12009
  if (found) {
12010
+ UI_WORKER_OBJ.cache = {};
12009
12011
  const _session = SESSION_OBJ[SESSION_ID];
12010
12012
  if (_session.engine_mode === 'live_preview') {
12011
12013
  console.info('========= refresh info ==============');
@@ -14794,8 +14796,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14794
14796
  });
14795
14797
 
14796
14798
  $div.on('outViewport', function () {
14797
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14798
- $div.empty();
14799
+ if ($div.children().length) {
14800
+ UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14801
+ $div.empty();
14802
+ }
14799
14803
  // $div.addClass('skeleton');
14800
14804
  observer_inViewport.observe($div[0]);
14801
14805
  });
@@ -9261,6 +9261,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
9261
9261
  }, 100);
9262
9262
  return;
9263
9263
  }
9264
+ UI_WORKER_OBJ.cache = {};
9264
9265
  const _session = SESSION_OBJ[SESSION_ID];
9265
9266
  if (_session.engine_mode === 'live_preview') {
9266
9267
  console.info('========= xu-attributes refresh info ==============');
@@ -9714,6 +9715,7 @@ func.UI.screen.refresh_screen = async function (SESSION_ID, fields_changed_arr,
9714
9715
  }
9715
9716
  }
9716
9717
  if (found) {
9718
+ UI_WORKER_OBJ.cache = {};
9717
9719
  const _session = SESSION_OBJ[SESSION_ID];
9718
9720
  if (_session.engine_mode === 'live_preview') {
9719
9721
  console.info('========= refresh info ==============');
@@ -12502,8 +12504,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12502
12504
  });
12503
12505
 
12504
12506
  $div.on('outViewport', function () {
12505
- UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12506
- $div.empty();
12507
+ if ($div.children().length) {
12508
+ UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12509
+ $div.empty();
12510
+ }
12507
12511
  // $div.addClass('skeleton');
12508
12512
  observer_inViewport.observe($div[0]);
12509
12513
  });