Skip to content

Commit

Permalink
Creating app method container wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Oct 20, 2023
1 parent 9236263 commit c0cd95f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/runtimePipelineYazzUiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -1609,11 +1609,7 @@ ${formprop.fn}
}
}
debugger
if (isAsync) {
return mm.convertAppMethodStringToFn( appMethodId , true)
} else {
return mm.convertAppMethodStringToFn( appMethodId , false)
}
return mm.convertAppMethodStringToFn( appMethodId , isAsync)
},
convertAppMethodStringToFn: function ( appMethodId , isAsync ) {
let mm = this
Expand All @@ -1628,8 +1624,15 @@ ${methodSrcCode}
{
skipFirstAndLastLine: true
})
let containingCode =
`(${isAsync?"async ":""}function(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) {
let innerf= ${debugFcc}
let retv = innerf(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10)
return retv
})
`

fnDetails = eval(debugFcc)
fnDetails = eval(containingCode)
return fnDetails
},
deleteCursor: function ( ) {
Expand Down

0 comments on commit c0cd95f

Please sign in to comment.