@xuda.io/runtime-bundle 1.0.796 → 1.0.797
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.
|
@@ -32840,6 +32840,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32840
32840
|
}
|
|
32841
32841
|
return {};
|
|
32842
32842
|
},
|
|
32843
|
+
'xu-viewport': async function ($elm, val) {
|
|
32844
|
+
return {};
|
|
32845
|
+
},
|
|
32843
32846
|
};
|
|
32844
32847
|
|
|
32845
32848
|
if (nodeP.tagName.substr(0, 3) === 'xu-') {
|
|
@@ -32865,6 +32868,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32865
32868
|
$elm.data().xuData.debug_info.attribute_stat[xu_func] = val.value;
|
|
32866
32869
|
}
|
|
32867
32870
|
try {
|
|
32871
|
+
if (!common_fx[xu_func]) {
|
|
32872
|
+
console.warn('invalid xu-tag', xu_func, error);
|
|
32873
|
+
return {};
|
|
32874
|
+
}
|
|
32875
|
+
|
|
32868
32876
|
return await common_fx[xu_func]($elm, val);
|
|
32869
32877
|
} catch (error) {
|
|
32870
32878
|
debugger;
|
|
@@ -34386,7 +34394,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34386
34394
|
await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
34387
34395
|
};
|
|
34388
34396
|
|
|
34389
|
-
if (nodeP
|
|
34397
|
+
if (nodeP?.attributes?.['xu-viewport']) {
|
|
34390
34398
|
$div.on('inViewport', function () {
|
|
34391
34399
|
console.log('Element is in viewport!');
|
|
34392
34400
|
render_child();
|