@xuda.io/runtime-bundle 1.0.387 → 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.
@@ -11951,8 +11951,20 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
11951
11951
  // },
11952
11952
  // });
11953
11953
 
11954
- Object.observe(_session.DS_GLB[paramsP.dsSessionP], function (changes) {
11955
- console.log(changes);
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,
11956
11968
  });
11957
11969
 
11958
11970
  return {};
@@ -10024,8 +10024,20 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10024
10024
  // },
10025
10025
  // });
10026
10026
 
10027
- Object.observe(_session.DS_GLB[paramsP.dsSessionP], function (changes) {
10028
- console.log(changes);
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,
10029
10041
  });
10030
10042
 
10031
10043
  return {};