1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-15 23:07:18 +00:00

Remove need to explicitly clear widget mapping variable when invoking overridden widget

This commit is contained in:
jeremy@jermolene.com
2022-04-26 14:24:31 +01:00
parent 35616a0b39
commit fae038dcbc
3 changed files with 39 additions and 8 deletions

View File

@@ -406,6 +406,32 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
"$name": {name: "$name", type: "string", value: "body"}
},
children: parseTreeNode.children
},
{
type: "value",
tag: "$value",
attributes: {
"$name": {name: "$name", type: "string", value: "wrapper"}
},
children: [
{
type: "setvariable",
tag: "$setvariable",
attributes: {
"name": {name: "name", type: "string", value: variableDefinitionName},
"value": {name: "value", type: "string", value: ""}
},
children: [
{
type: "slot",
tag: "$slot",
attributes: {
"$name": {name: "$name", type: "string", value: "wrapped"}
}
}
]
}
]
}
]
};