Skip to content

Commit

Permalink
Remove commented half-broken eval
Browse files Browse the repository at this point in the history
  • Loading branch information
CMEONE committed Mar 15, 2021
1 parent 432fe02 commit 19a3e1d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ class tApp {
if(data == null) {
data = {};
}
// return tApp.eval(tApp.optionsToEval(data) + "let _____tApp_____result = (function() {return eval(\"" + code.replaceAll("\"", "\\\"") + "\")})();" + tApp.restoreOptions(data) + "[_____tApp_____result, _____tApp_____returnOptions]");
return tApp.eval(tApp.optionsToEval(data) + `let _____tApp_____result = (function() {return eval("${code.replaceAll("\"", "\\\"")}")})();${tApp.restoreOptions(data)}[_____tApp_____result, _____tApp_____returnOptions]`);
}
static getComponent(id) {
Expand Down

0 comments on commit 19a3e1d

Please sign in to comment.