Skip to content

Commit

Permalink
Update AeplSetName.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shysolocup authored Sep 28, 2023
1 parent fa50f73 commit 0581373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/AeplSetName.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports =

(c) => ({

data: function AeplSetName(name, autodefine) {
data: function AeplSetName(name, autodefine=true) {
Object.defineProperty(c, "name", { value: name });
if (autodefine) return new Function("cl", `return ${name} = cl`)(c);
},
Expand Down

0 comments on commit 0581373

Please sign in to comment.