@xuda.io/runtime-bundle 1.0.1149 → 1.0.1151

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.
@@ -13107,11 +13107,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
13107
13107
  if ($elm.is(':visible')) {
13108
13108
  try {
13109
13109
  // var res = eval('(' + val.value + ')');
13110
- const fn = `(function(el, evt) {
13111
- ${val.value}
13112
- })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`),evt);`;
13110
+ // const fn = `(function(el) {
13111
+ // ${val.value}
13112
+ // })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`));`;
13113
+
13114
+ const fn = `function(el) {${val.value} };`;
13113
13115
 
13114
13116
  var res = eval(fn);
13117
+ res($elm[0]);
13115
13118
  // if (typeof res === 'function') {
13116
13119
  // res($elm[0]);
13117
13120
  // }
@@ -10832,11 +10832,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
10832
10832
  if ($elm.is(':visible')) {
10833
10833
  try {
10834
10834
  // var res = eval('(' + val.value + ')');
10835
- const fn = `(function(el, evt) {
10836
- ${val.value}
10837
- })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`),evt);`;
10835
+ // const fn = `(function(el) {
10836
+ // ${val.value}
10837
+ // })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`));`;
10838
+
10839
+ const fn = `function(el) {${val.value} };`;
10838
10840
 
10839
10841
  var res = eval(fn);
10842
+ res($elm[0]);
10840
10843
  // if (typeof res === 'function') {
10841
10844
  // res($elm[0]);
10842
10845
  // }