@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.
@@ -14856,30 +14856,32 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14856
14856
  // if ($div.parent().data().xuData.viewport_elm_height) {
14857
14857
  // $div.css(height, $div.parent().data().xuData.viewport_elm_height);
14858
14858
  // }
14859
-
14859
+ let ui_job_id;
14860
14860
  $div.on('inViewport', function () {
14861
14861
  if ($div.children().length) {
14862
14862
  $div.removeClass('skeleton');
14863
14863
  return;
14864
14864
  }
14865
14865
 
14866
- const height = $div.data().xuData.viewport_height;
14867
- if (typeof height !== 'undefined') {
14868
- // $div.css('height', 'unset');
14869
- $div[0].style.removeProperty('height');
14870
- }
14866
+ // const height = $div.data().xuData.viewport_height;
14867
+ // if (typeof height !== 'undefined') {
14868
+ // $div.css('height', 'unset');
14869
+ $div[0].style.removeProperty('height');
14870
+ // }
14871
14871
 
14872
14872
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
14873
14873
  $div.removeClass('skeleton');
14874
14874
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
14875
14875
  } else {
14876
14876
  hover_in($div);
14877
- 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);
14877
+ 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);
14878
14878
  }
14879
14879
  observer_outViewport.observe($div[0]);
14880
14880
  });
14881
14881
 
14882
14882
  $div.on('outViewport', function () {
14883
+ func.UI.worker.delete_job(SESSION_ID, ui_job_id);
14884
+
14883
14885
  if ($div.children().length) {
14884
14886
  UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
14885
14887
  $div.empty();
@@ -12564,30 +12564,32 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12564
12564
  // if ($div.parent().data().xuData.viewport_elm_height) {
12565
12565
  // $div.css(height, $div.parent().data().xuData.viewport_elm_height);
12566
12566
  // }
12567
-
12567
+ let ui_job_id;
12568
12568
  $div.on('inViewport', function () {
12569
12569
  if ($div.children().length) {
12570
12570
  $div.removeClass('skeleton');
12571
12571
  return;
12572
12572
  }
12573
12573
 
12574
- const height = $div.data().xuData.viewport_height;
12575
- if (typeof height !== 'undefined') {
12576
- // $div.css('height', 'unset');
12577
- $div[0].style.removeProperty('height');
12578
- }
12574
+ // const height = $div.data().xuData.viewport_height;
12575
+ // if (typeof height !== 'undefined') {
12576
+ // $div.css('height', 'unset');
12577
+ $div[0].style.removeProperty('height');
12578
+ // }
12579
12579
 
12580
12580
  if (UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]) {
12581
12581
  $div.removeClass('skeleton');
12582
12582
  $div.html(UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')]);
12583
12583
  } else {
12584
12584
  hover_in($div);
12585
- 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);
12585
+ 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);
12586
12586
  }
12587
12587
  observer_outViewport.observe($div[0]);
12588
12588
  });
12589
12589
 
12590
12590
  $div.on('outViewport', function () {
12591
+ func.UI.worker.delete_job(SESSION_ID, ui_job_id);
12592
+
12591
12593
  if ($div.children().length) {
12592
12594
  UI_WORKER_OBJ.cache[$div.attr('xu-ui-id')] = $div.children().clone(true);
12593
12595
  $div.empty();