@xuda.io/runtime-bundle 1.0.797 → 1.0.799

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.
@@ -32841,6 +32841,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32841
32841
  return {};
32842
32842
  },
32843
32843
  'xu-viewport': async function ($elm, val) {
32844
+ // functionality in draw_html_element
32844
32845
  return {};
32845
32846
  },
32846
32847
  };
@@ -34394,13 +34395,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34394
34395
  await iterate_child($div, nodeP, parent_infoP, null, $root_container);
34395
34396
  };
34396
34397
 
34397
- if (nodeP?.attributes?.['xu-viewport']) {
34398
+ if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34398
34399
  $div.on('inViewport', function () {
34399
- console.log('Element is in viewport!');
34400
34400
  render_child();
34401
- // $(this).addClass('visible');
34402
- // Your custom code here
34401
+ // iterate_child($div, nodeP, parent_infoP, null, $root_container);
34403
34402
  });
34403
+ await iterate_child($('<div>'), nodeP, parent_infoP, null, $root_container);
34404
34404
  observer.observe($div[0]);
34405
34405
  } else {
34406
34406
  await render_child();