@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.
@@ -13173,6 +13173,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13173
13173
  }
13174
13174
  return {};
13175
13175
  },
13176
+ 'xu-viewport': async function ($elm, val) {
13177
+ return {};
13178
+ },
13176
13179
  };
13177
13180
 
13178
13181
  if (nodeP.tagName.substr(0, 3) === 'xu-') {
@@ -13198,6 +13201,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13198
13201
  $elm.data().xuData.debug_info.attribute_stat[xu_func] = val.value;
13199
13202
  }
13200
13203
  try {
13204
+ if (!common_fx[xu_func]) {
13205
+ console.warn('invalid xu-tag', xu_func, error);
13206
+ return {};
13207
+ }
13208
+
13201
13209
  return await common_fx[xu_func]($elm, val);
13202
13210
  } catch (error) {
13203
13211
  debugger;
@@ -14719,7 +14727,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14719
14727
  await iterate_child($div, nodeP, parent_infoP, null, $root_container);
14720
14728
  };
14721
14729
 
14722
- if (nodeP.attributes['xu-viewport']) {
14730
+ if (nodeP?.attributes?.['xu-viewport']) {
14723
14731
  $div.on('inViewport', function () {
14724
14732
  console.log('Element is in viewport!');
14725
14733
  render_child();
@@ -10881,6 +10881,9 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10881
10881
  }
10882
10882
  return {};
10883
10883
  },
10884
+ 'xu-viewport': async function ($elm, val) {
10885
+ return {};
10886
+ },
10884
10887
  };
10885
10888
 
10886
10889
  if (nodeP.tagName.substr(0, 3) === 'xu-') {
@@ -10906,6 +10909,11 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10906
10909
  $elm.data().xuData.debug_info.attribute_stat[xu_func] = val.value;
10907
10910
  }
10908
10911
  try {
10912
+ if (!common_fx[xu_func]) {
10913
+ console.warn('invalid xu-tag', xu_func, error);
10914
+ return {};
10915
+ }
10916
+
10909
10917
  return await common_fx[xu_func]($elm, val);
10910
10918
  } catch (error) {
10911
10919
  debugger;
@@ -12427,7 +12435,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12427
12435
  await iterate_child($div, nodeP, parent_infoP, null, $root_container);
12428
12436
  };
12429
12437
 
12430
- if (nodeP.attributes['xu-viewport']) {
12438
+ if (nodeP?.attributes?.['xu-viewport']) {
12431
12439
  $div.on('inViewport', function () {
12432
12440
  console.log('Element is in viewport!');
12433
12441
  render_child();