@xuda.io/runtime-bundle 1.0.674 → 1.0.675

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.
@@ -8695,23 +8695,17 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8695
8695
  return done();
8696
8696
  },
8697
8697
  execute_xu_for: async function () {
8698
- // var $elm = func.UI.utils.find_in_element_data(
8699
- // "xuData",
8700
- // $(SESSION_OBJ[SESSION_ID].root_element),
8701
- // "xu_id",
8702
- // queue_obj.paramsP.elem_key
8703
- // );
8704
-
8705
8698
  var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
8706
8699
 
8707
8700
  if (!$elm?.length) {
8708
- // return func.events.delete_job(SESSION_ID, queue_obj.jobNoP);
8709
8701
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8710
8702
  }
8711
8703
 
8712
8704
  // $elm.empty();
8713
8705
 
8714
8706
  $.each($elm.children(), (key, val) => {
8707
+ if (!$(val)?.data()?.xuData) return true;
8708
+
8715
8709
  if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
8716
8710
  $(val).remove();
8717
8711
  }
@@ -8696,23 +8696,17 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8696
8696
  return done();
8697
8697
  },
8698
8698
  execute_xu_for: async function () {
8699
- // var $elm = func.UI.utils.find_in_element_data(
8700
- // "xuData",
8701
- // $(SESSION_OBJ[SESSION_ID].root_element),
8702
- // "xu_id",
8703
- // queue_obj.paramsP.elem_key
8704
- // );
8705
-
8706
8699
  var $elm = queue_obj?.paramsP?.elem_val?.$elm; // $(SESSION_OBJ[SESSION_ID].root_element).find(`[xu-ui-id=${queue_obj.paramsP.elem_key}]`)
8707
8700
 
8708
8701
  if (!$elm?.length) {
8709
- // return func.events.delete_job(SESSION_ID, queue_obj.jobNoP);
8710
8702
  return func.UI.worker.delete_job(SESSION_ID, queue_obj.job_num);
8711
8703
  }
8712
8704
 
8713
8705
  // $elm.empty();
8714
8706
 
8715
8707
  $.each($elm.children(), (key, val) => {
8708
+ if (!$(val)?.data()?.xuData) return true;
8709
+
8716
8710
  if ($(val).data().xuData.nodeid === queue_obj?.paramsP?.xu_for_item_id) {
8717
8711
  $(val).remove();
8718
8712
  }