mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 18:10:27 +00:00
Remove erroneous "tag" property
This commit is contained in:
parent
8b867be8ef
commit
bbc6661192
@ -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: []
|
||||
|
@ -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"}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user