1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-29 08:43:14 +00:00

Remove erroneous "tag" property

This commit is contained in:
jeremy@jermolene.com 2022-05-02 09:26:18 +01:00
parent 8b867be8ef
commit bbc6661192
2 changed files with 1 additions and 7 deletions

View File

@ -140,7 +140,7 @@ TranscludeWidget.prototype.collectSlotValueParameters = function() {
var noValueWidgetsFound = true,
searchParseTreeNodes = function(nodes) {
$tw.utils.each(nodes,function(node) {
if(node.type === "value" && node.tag === "$value") {
if(node.type === "value") {
if(node.attributes["$name"] && node.attributes["$name"].type === "string") {
var slotValueName = node.attributes["$name"].value;
self.slotValueParseTrees[slotValueName] = node.children;
@ -178,7 +178,6 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
tree: [
{
type: "parameters",
name: "$parameters",
children: parser.tree,
attributes: {},
orderedAttributes: []

View File

@ -404,14 +404,12 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
if(parseTreeNode.type !== "transclude" && this.variables[variableDefinitionName] && this.variables[variableDefinitionName].value) {
var newParseTreeNode = {
type: "transclude",
tag: "$transclude",
attributes: {
"$variable": {name: "$variable", type: "string", value: variableDefinitionName}
},
children: [
{
type: "value",
tag: "$value",
attributes: {
"$name": {name: "$name", type: "string", value: "ts-body"}
},
@ -419,14 +417,12 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
},
{
type: "value",
tag: "$value",
attributes: {
"$name": {name: "$name", type: "string", value: "ts-wrapper"}
},
children: [
{
type: "setvariable",
tag: "$setvariable",
attributes: {
"name": {name: "name", type: "string", value: variableDefinitionName},
"value": {name: "value", type: "string", value: ""}
@ -434,7 +430,6 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
children: [
{
type: "slot",
tag: "$slot",
attributes: {
"$name": {name: "$name", type: "string", value: "ts-wrapped"}
}