mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-30 01:03:16 +00:00
Refactor condition logic
This commit is contained in:
parent
7e86cdf44d
commit
fd95a942aa
|
@ -237,7 +237,7 @@ TranscludeWidget.prototype.getTransclusionTarget = function(parseAsInline) {
|
|||
}
|
||||
$tw.utils.addAttributeToParseTreeNode(parser.tree[0],name,param["default"])
|
||||
});
|
||||
} else if(srcVariable && (srcVariable.isMacroDefinition || !srcVariable.isFunctionDefinition)) {
|
||||
} else if(srcVariable && !srcVariable.isFunctionDefinition) {
|
||||
// For macros and ordinary variables, wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__"
|
||||
parser = {
|
||||
tree: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user