From bbc6661192d10a173e41642fc9d013a483578396 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 2 May 2022 09:26:18 +0100 Subject: [PATCH] Remove erroneous "tag" property --- core/modules/widgets/transclude.js | 3 +-- core/modules/widgets/widget.js | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index 064e6795b..abcb0eb2e 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -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: [] diff --git a/core/modules/widgets/widget.js b/core/modules/widgets/widget.js index 62a1d05a6..52c7f20ac 100755 --- a/core/modules/widgets/widget.js +++ b/core/modules/widgets/widget.js @@ -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"} }