@xuda.io/runtime-bundle 1.0.877 → 1.0.879

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.
@@ -34523,30 +34523,32 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34523
34523
  // if ($div.parent().data().xuData.viewport_elm_height) {
34524
34524
  // $div.css(height, $div.parent().data().xuData.viewport_elm_height);
34525
34525
  // }
34526
-
34526
+ let ui_job_id;
34527
34527
  $div.on('inViewport', function () {
34528
34528
  if ($div.children().length) {
34529
34529
  $div.removeClass('skeleton');
34530
34530
  return;
34531
34531
  }
34532
34532
 
34533
- const height = $div.data().xuData.viewport_height;
34534
- if (typeof height !== 'undefined') {
34535
- // $div.css('height', 'unset');
34536
- $div[0].style.removeProperty('height');
34537
- }
34533
+ // const height = $div.data().xuData.viewport_height;
34534
+ // if (typeof height !== 'undefined') {
34535
+ // $div.css('height', 'unset');
34536
+ $div[0].style.removeProperty('height');
34537
+ // }
34538
34538
 
34539
34539
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
34540
34540
  $div.removeClass('skeleton');
34541
34541
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
34542
34542
  } else {
34543
34543
  hover_in($div);
34544
- func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
34544
+ ui_job_id = func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
34545
34545
  }
34546
34546
  observer_outViewport.observe($div[0]);
34547
34547
  });
34548
34548
 
34549
34549
  $div.on('outViewport', function () {
34550
+ func.UI.worker.delete_job(SESSION_ID, ui_job_id);
34551
+
34550
34552
  if ($div.children().length) {
34551
34553
  UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
34552
34554
  $div.empty();