@xuda.io/runtime-bundle 1.0.796 → 1.0.798

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,10 @@ 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
+ // functionality in draw_html_element
32845
+ return {};
32846
+ },
32843
32847
  };
32844
32848
 
32845
32849
  if (nodeP.tagName.substr(0, 3) === 'xu-') {
@@ -32865,6 +32869,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32865
32869
  $elm.data().xuData.debug_info.attribute_stat[xu_func] = val.value;
32866
32870
  }
32867
32871
  try {
32872
+ if (!common_fx[xu_func]) {
32873
+ console.warn('invalid xu-tag', xu_func, error);
32874
+ return {};
32875
+ }
32876
+
32868
32877
  return await common_fx[xu_func]($elm, val);
32869
32878
  } catch (error) {
32870
32879
  debugger;
@@ -34386,12 +34395,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34386
34395
  await iterate_child($div, nodeP, parent_infoP, null, $root_container);
34387
34396
  };
34388
34397
 
34389
- if (nodeP.attributes['xu-viewport']) {
34398
+ if (nodeP?.attributes?.['xu-viewport'] === 'true') {
34390
34399
  $div.on('inViewport', function () {
34391
- console.log('Element is in viewport!');
34392
- render_child();
34393
- // $(this).addClass('visible');
34394
- // Your custom code here
34400
+ // render_child();
34401
+ iterate_child($div, nodeP, parent_infoP, null, $root_container);
34395
34402
  });
34396
34403
  observer.observe($div[0]);
34397
34404
  } else {