@xuda.io/runtime-bundle 1.0.472 → 1.0.474

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.
@@ -12044,8 +12044,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12044
12044
  return ret;
12045
12045
  },
12046
12046
  'xu-ref': async function ($elm, val) {
12047
- const $wrapper = $(`[xu-panel-wrapper-id='${$elm.attr('xu-ui-id')}`);
12048
- let ret = await common_fx['xu-ref']($wrapper, val);
12047
+ // const $wrapper = $(`[xu-panel-wrapper-id='${$elm.attr('xu-ui-id')}`);
12048
+ let ret = await common_fx['xu-ref']($container, val);
12049
12049
  return ret;
12050
12050
  },
12051
12051
  },
@@ -12111,6 +12111,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
12111
12111
  // Select the node that will be observed for mutations
12112
12112
  const targetNode = $elm[0];
12113
12113
 
12114
+ if (!targetNode) return;
12115
+
12114
12116
  // Options for the observer (which mutations to observe)
12115
12117
  const config = { attributes: true, childList: true, subtree: true };
12116
12118
 
@@ -10117,8 +10117,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10117
10117
  return ret;
10118
10118
  },
10119
10119
  'xu-ref': async function ($elm, val) {
10120
- const $wrapper = $(`[xu-panel-wrapper-id='${$elm.attr('xu-ui-id')}`);
10121
- let ret = await common_fx['xu-ref']($wrapper, val);
10120
+ // const $wrapper = $(`[xu-panel-wrapper-id='${$elm.attr('xu-ui-id')}`);
10121
+ let ret = await common_fx['xu-ref']($container, val);
10122
10122
  return ret;
10123
10123
  },
10124
10124
  },
@@ -10184,6 +10184,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10184
10184
  // Select the node that will be observed for mutations
10185
10185
  const targetNode = $elm[0];
10186
10186
 
10187
+ if (!targetNode) return;
10188
+
10187
10189
  // Options for the observer (which mutations to observe)
10188
10190
  const config = { attributes: true, childList: true, subtree: true };
10189
10191