@xuda.io/runtime-bundle 1.0.878 → 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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -14856,7 +14856,7 @@ 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');
|
|
@@ -14874,12 +14874,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
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,7 +12564,7 @@ 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');
|
|
@@ -12582,12 +12582,14 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
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();
|