@xuda.io/runtime-bundle 1.0.386 → 1.0.388

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.
@@ -11944,11 +11944,27 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11944
11944
  // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
11945
11945
  _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props, xu_ui_id };
11946
11946
 
11947
- const proxy1 = new Proxy(_session.DS_GLB[paramsP.dsSessionP], {
11948
- get(target, prop, receiver) {
11949
- debugger;
11950
- return 'world';
11951
- },
11947
+ // const proxy1 = new Proxy(_session.DS_GLB[paramsP.dsSessionP], {
11948
+ // get(target, prop, receiver) {
11949
+ // debugger;
11950
+ // return 'world';
11951
+ // },
11952
+ // });
11953
+
11954
+ // Object.observe(_session.DS_GLB[paramsP.dsSessionP], function (changes) {
11955
+ // console.log(changes);
11956
+ // });
11957
+
11958
+ // create a new instance of `MutationObserver` named `observer`,
11959
+ // passing it a callback function
11960
+ const observer = new MutationObserver(() => {
11961
+ console.log('callback that runs when observer is triggered');
11962
+ });
11963
+
11964
+ // call `observe()`, passing it the element to observe, and the options object
11965
+ observer.observe(_session.DS_GLB[paramsP.dsSessionP], {
11966
+ subtree: true,
11967
+ childList: true,
11952
11968
  });
11953
11969
 
11954
11970
  return {};
@@ -10017,11 +10017,27 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10017
10017
  // _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { $el: $elm, ds: _ds, data, attributes, props };
10018
10018
  _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props, xu_ui_id };
10019
10019
 
10020
- const proxy1 = new Proxy(_session.DS_GLB[paramsP.dsSessionP], {
10021
- get(target, prop, receiver) {
10022
- debugger;
10023
- return 'world';
10024
- },
10020
+ // const proxy1 = new Proxy(_session.DS_GLB[paramsP.dsSessionP], {
10021
+ // get(target, prop, receiver) {
10022
+ // debugger;
10023
+ // return 'world';
10024
+ // },
10025
+ // });
10026
+
10027
+ // Object.observe(_session.DS_GLB[paramsP.dsSessionP], function (changes) {
10028
+ // console.log(changes);
10029
+ // });
10030
+
10031
+ // create a new instance of `MutationObserver` named `observer`,
10032
+ // passing it a callback function
10033
+ const observer = new MutationObserver(() => {
10034
+ console.log('callback that runs when observer is triggered');
10035
+ });
10036
+
10037
+ // call `observe()`, passing it the element to observe, and the options object
10038
+ observer.observe(_session.DS_GLB[paramsP.dsSessionP], {
10039
+ subtree: true,
10040
+ childList: true,
10025
10041
  });
10026
10042
 
10027
10043
  return {};