1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-21 10:47:39 +00:00

Use consistent parse tree node property for params

This commit is contained in:
jeremy@jermolene.com
2022-05-07 13:22:53 +01:00
parent 2fe2d20ddf
commit 9be05f6f38
7 changed files with 9 additions and 12 deletions

View File

@@ -51,7 +51,7 @@ SetWidget.prototype.execute = function() {
if(this.parseTreeNode.isMacroDefinition) {
this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,!!this.parseTreeNode.isMacroDefinition);
} else if(this.parseTreeNode.isFunctionDefinition) {
this.setVariable(this.setName,this.getValue(),undefined,undefined,{isFunctionDefinition: this.parseTreeNode.isFunctionDefinition,variableParams: this.parseTreeNode.variableParams});
this.setVariable(this.setName,this.getValue(),this.parseTreeNode.params,undefined,{isFunctionDefinition: this.parseTreeNode.isFunctionDefinition});
} else {
this.setVariable(this.setName,this.getValue());
}