@xuda.io/runtime-bundle 1.0.797 → 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.
@@ -13174,6 +13174,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13174
13174
  return {};
13175
13175
  },
13176
13176
  'xu-viewport': async function ($elm, val) {
13177
+ // functionality in draw_html_element
13177
13178
  return {};
13178
13179
  },
13179
13180
  };
@@ -14727,12 +14728,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14727
14728
  await iterate_child($div, nodeP, parent_infoP, null, $root_container);
14728
14729
  };
14729
14730
 
14730
- if (nodeP?.attributes?.['xu-viewport']) {
14731
+ if (nodeP?.attributes?.['xu-viewport'] === 'true') {
14731
14732
  $div.on('inViewport', function () {
14732
- console.log('Element is in viewport!');
14733
- render_child();
14734
- // $(this).addClass('visible');
14735
- // Your custom code here
14733
+ // render_child();
14734
+ iterate_child($div, nodeP, parent_infoP, null, $root_container);
14736
14735
  });
14737
14736
  observer.observe($div[0]);
14738
14737
  } else {
@@ -10882,6 +10882,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10882
10882
  return {};
10883
10883
  },
10884
10884
  'xu-viewport': async function ($elm, val) {
10885
+ // functionality in draw_html_element
10885
10886
  return {};
10886
10887
  },
10887
10888
  };
@@ -12435,12 +12436,10 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12435
12436
  await iterate_child($div, nodeP, parent_infoP, null, $root_container);
12436
12437
  };
12437
12438
 
12438
- if (nodeP?.attributes?.['xu-viewport']) {
12439
+ if (nodeP?.attributes?.['xu-viewport'] === 'true') {
12439
12440
  $div.on('inViewport', function () {
12440
- console.log('Element is in viewport!');
12441
- render_child();
12442
- // $(this).addClass('visible');
12443
- // Your custom code here
12441
+ // render_child();
12442
+ iterate_child($div, nodeP, parent_infoP, null, $root_container);
12444
12443
  });
12445
12444
  observer.observe($div[0]);
12446
12445
  } else {