@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.
@@ -32791,11 +32791,14 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32791
32791
  if ($elm.is(':visible')) {
32792
32792
  try {
32793
32793
  // var res = eval('(' + val.value + ')');
32794
- const fn = `(function(el, evt) {
32795
- ${val.value}
32796
- })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`),evt);`;
32794
+ // const fn = `(function(el) {
32795
+ // ${val.value}
32796
+ // })(document.querySelector(\`[xu-ui-id="${$elm.attr('xu-ui-id')}"]\`));`;
32797
+
32798
+ const fn = `function(el) {${val.value} };`;
32797
32799
 
32798
32800
  var res = eval(fn);
32801
+ res($elm[0]);
32799
32802
  // if (typeof res === 'function') {
32800
32803
  // res($elm[0]);
32801
32804
  // }