@xuda.io/runtime-bundle 1.0.1142 → 1.0.1144

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.
@@ -13106,10 +13106,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13106
13106
  var checkExist = setInterval(function () {
13107
13107
  if ($elm.is(':visible')) {
13108
13108
  try {
13109
- var res = eval('(' + val.value + ')');
13110
- if (typeof res === 'function') {
13111
- res($elm[0]);
13112
- }
13109
+ // var res = eval('(' + val.value + ')');
13110
+ const fn = `(function(el) {${val.value}})(${$elm[0]});`;
13111
+ var res = eval(fn);
13112
+ // if (typeof res === 'function') {
13113
+ // res($elm[0]);
13114
+ // }
13113
13115
  } catch (e) {
13114
13116
  eval(val.value);
13115
13117
  }
@@ -10831,10 +10831,12 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10831
10831
  var checkExist = setInterval(function () {
10832
10832
  if ($elm.is(':visible')) {
10833
10833
  try {
10834
- var res = eval('(' + val.value + ')');
10835
- if (typeof res === 'function') {
10836
- res($elm[0]);
10837
- }
10834
+ // var res = eval('(' + val.value + ')');
10835
+ const fn = `(function(el) {${val.value}})(${$elm[0]});`;
10836
+ var res = eval(fn);
10837
+ // if (typeof res === 'function') {
10838
+ // res($elm[0]);
10839
+ // }
10838
10840
  } catch (e) {
10839
10841
  eval(val.value);
10840
10842
  }