@xuda.io/runtime-bundle 1.0.575 → 1.0.577
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.
|
@@ -27574,6 +27574,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27574
27574
|
|
|
27575
27575
|
setInterval(async function () {
|
|
27576
27576
|
func.UI.refs_garbage_collector();
|
|
27577
|
+
func.UI.teleport_garbage_collector();
|
|
27577
27578
|
}, 1000);
|
|
27578
27579
|
};
|
|
27579
27580
|
func.UI.worker.add_to_queue = async function (SESSION_ID, source, functionP, paramsP, calling_job, elementP, dsSession, calling_trigger_prop) {
|
|
@@ -32058,31 +32059,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32058
32059
|
[`xu-teleport`]: {
|
|
32059
32060
|
to: async function ($elm, val) {
|
|
32060
32061
|
if (val.value) {
|
|
32061
|
-
$elm.data('xuTeleportData', []);
|
|
32062
|
+
$elm.parent().data('xuTeleportData', []);
|
|
32062
32063
|
for (const [key, node] of Object.entries(nodeP.children)) {
|
|
32063
32064
|
const $teleport_elm = await func.UI.screen.render_ui_tree(SESSION_ID, $(val.value), node, parent_infoP, paramsP, jobNoP, is_skeleton, Number(key), null, node, null, $root_container);
|
|
32064
32065
|
// $teleport_elm.data('xuTeleportParentId', );
|
|
32065
|
-
$elm.data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
32066
|
-
$teleport_elm.attr('xu-teleport-parent-id', $elm.attr('xu-ui-id'));
|
|
32067
|
-
// console.log($teleport_elm);
|
|
32066
|
+
$elm.parent().data().xuTeleportData.push($teleport_elm.attr('xu-ui-id'));
|
|
32067
|
+
$teleport_elm.attr('xu-teleport-parent-id', $elm.parent().attr('xu-ui-id'));
|
|
32068
32068
|
}
|
|
32069
|
-
|
|
32070
|
-
// // Select the node that will be observed for mutations
|
|
32071
|
-
// const targetNode = $elm[0];
|
|
32072
|
-
|
|
32073
|
-
// // Options for the observer (which mutations to observe)
|
|
32074
|
-
// const config = { attributes: true, childList: true, subtree: true };
|
|
32075
|
-
|
|
32076
|
-
// // Callback function to execute when mutations are observed
|
|
32077
|
-
// const callback = (mutationList, observer) => {
|
|
32078
|
-
// console.log(mutationList, observer);
|
|
32079
|
-
// };
|
|
32080
|
-
|
|
32081
|
-
// // Create an observer instance linked to the callback function
|
|
32082
|
-
// const observer = new MutationObserver(callback);
|
|
32083
|
-
|
|
32084
|
-
// // Start observing the target node for configured mutations
|
|
32085
|
-
// observer.observe(targetNode, config);
|
|
32069
|
+
$elm.remove();
|
|
32086
32070
|
}
|
|
32087
32071
|
return { abort: true };
|
|
32088
32072
|
},
|