@xuda.io/runtime-bundle 1.0.1014 → 1.0.1016

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.
@@ -32270,7 +32270,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32270
32270
  var value = await func.common.get_cast_val(SESSION_ID, 'common fx', 'xu-render', 'bool', val.value);
32271
32271
  const init_render = async function () {
32272
32272
  if (!value) {
32273
- var cloned_$div = $elm.clone(true);
32273
+ const cloned_$div = $elm.clone(true);
32274
32274
 
32275
32275
  const xu_ui_id = await generate_xu_ui_id(SESSION_ID, nodeP, $container, paramsP, keyP);
32276
32276
 
@@ -32386,34 +32386,44 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32386
32386
 
32387
32387
  let $xurender = $('<xurender>').attr('xu-ui-id', xu_ui_id).appendTo(tmp_$div).hide();
32388
32388
  // // was true before
32389
- // if ($elm.data().xuData.xurender_node) {
32390
- // $xurender.data({
32391
- // xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
32392
- // xuData: $elm.data().xuData.xurender_node.data().xuData || {},
32393
- // });
32394
- // } else {
32395
- // default new state
32396
-
32397
- $xurender.data({
32398
- xuAttributes: $elm.data().xuAttributes || {},
32399
- xuData: $elm.data().xuData || {},
32400
- });
32401
- const original_data_obj = {
32402
- nodeP: _.cloneDeep($elm.data().xuData.node_org),
32403
- paramsP: $elm.data().xuData.paramsP,
32404
- $container: $elm.clone(true),
32405
- parent_infoP: parent_infoP,
32406
- };
32389
+ if ($elm.data().xuData.xurender_node) {
32390
+ $xurender.data({
32391
+ xuAttributes: $elm.data().xuData.xurender_node.data().xuAttributes || {},
32392
+ xuData: $elm.data().xuData.xurender_node.data().xuData || {},
32393
+ });
32394
+ } else {
32395
+ // default new state
32396
+
32397
+ $xurender.data({
32398
+ xuAttributes: $elm.data().xuAttributes || {},
32399
+ xuData: $elm.data().xuData || {},
32400
+ });
32401
+ // const original_data_obj = {
32402
+ // nodeP: _.cloneDeep($elm.data().xuData.node_org),
32403
+ // paramsP: $elm.data().xuData.paramsP,
32404
+ // $container: $elm.clone(true),
32405
+ // parent_infoP: parent_infoP,
32406
+ // };
32407
+ const cloned_$div = $elm.clone(true);
32408
+ let original_data_obj = {
32409
+ force_render: false,
32410
+ $container: cloned_$div,
32411
+ nodeP: _.cloneDeep(cloned_$div.data().xuData.node_org),
32412
+ parent_infoP,
32413
+ paramsP,
32414
+ keyP,
32415
+ parent_nodeP,
32416
+ $root_container,
32417
+ };
32407
32418
 
32408
- $xurender.data().xuData.original_data_obj = original_data_obj;
32419
+ $xurender.data().xuData.original_data_obj = original_data_obj;
32409
32420
 
32410
- const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
32411
- if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
32412
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
32421
+ const cache_str = await get_xu_render_cache_str(SESSION_ID, paramsP.dsSessionP);
32422
+ if (!UI_WORKER_OBJ.xu_render_cache[xu_ui_id]) {
32423
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id] = {};
32424
+ }
32425
+ UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
32413
32426
  }
32414
- UI_WORKER_OBJ.xu_render_cache[xu_ui_id][cache_str] = original_data_obj;
32415
-
32416
- // }
32417
32427
  $elm.replaceWith(tmp_$div.children());
32418
32428
  func.events.delete_job(SESSION_ID, jobNoP);
32419
32429
  };