@xuda.io/runtime-bundle 1.0.381 → 1.0.383

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.
@@ -28215,7 +28215,8 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
28215
28215
  const _data_system = _session?.DS_GLB?.[0]?.data_system;
28216
28216
 
28217
28217
  for (const [key, val] of Object.entries(_data_system?.SYS_GLOBAL_OBJ_REFS || {})) {
28218
- if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
28218
+ // if (!$(`[xu-ui-id='${val?.$el.attr('xu-ui-id')}'`)?.length) {
28219
+ if (!$(`[xu-ui-id='${val.xu_ui_id}`)?.length) {
28219
28220
  delete _data_system.SYS_GLOBAL_OBJ_REFS[key];
28220
28221
  }
28221
28222
  }
@@ -31963,16 +31964,17 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31963
31964
  const _session = SESSION_OBJ[SESSION_ID];
31964
31965
  let _ds_0 = _session.DS_GLB[0];
31965
31966
 
31966
- const _ds = func.utils.clean_returned_datasource(SESSION_ID, _session.DS_GLB[paramsP.dsSessionP]);
31967
+ const _ds = func.utils.clean_returned_datasource(SESSION_ID, paramsP.dsSessionP);
31967
31968
 
31968
31969
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
31969
31970
  const data = _.clone(_ds?.data_feed?.rows?.[row_idx]) || {};
31970
31971
 
31971
31972
  const props = _ds.in_parameters || {};
31972
31973
  const attributes = $elm?.data()?.xuData?.properties || {};
31974
+ const xu_ui_id = $elm.attr('xu-ui-id');
31973
31975
 
31974
31976
  // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
31975
- _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props };
31977
+ _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props, xu_ui_id };
31976
31978
 
31977
31979
  return {};
31978
31980
  },