mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 02:20:28 +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,
|
var noValueWidgetsFound = true,
|
||||||
searchParseTreeNodes = function(nodes) {
|
searchParseTreeNodes = function(nodes) {
|
||||||
$tw.utils.each(nodes,function(node) {
|
$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") {
|
if(node.attributes["$name"] && node.attributes["$name"].type === "string") {
|
||||||
var slotValueName = node.attributes["$name"].value;
|
var slotValueName = node.attributes["$name"].value;
|
||||||
self.slotValueParseTrees[slotValueName] = node.children;
|
self.slotValueParseTrees[slotValueName] = node.children;
|
||||||
@ -178,7 +178,6 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
|
|||||||
tree: [
|
tree: [
|
||||||
{
|
{
|
||||||
type: "parameters",
|
type: "parameters",
|
||||||
name: "$parameters",
|
|
||||||
children: parser.tree,
|
children: parser.tree,
|
||||||
attributes: {},
|
attributes: {},
|
||||||
orderedAttributes: []
|
orderedAttributes: []
|
||||||
|
@ -404,14 +404,12 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
|
|||||||
if(parseTreeNode.type !== "transclude" && this.variables[variableDefinitionName] && this.variables[variableDefinitionName].value) {
|
if(parseTreeNode.type !== "transclude" && this.variables[variableDefinitionName] && this.variables[variableDefinitionName].value) {
|
||||||
var newParseTreeNode = {
|
var newParseTreeNode = {
|
||||||
type: "transclude",
|
type: "transclude",
|
||||||
tag: "$transclude",
|
|
||||||
attributes: {
|
attributes: {
|
||||||
"$variable": {name: "$variable", type: "string", value: variableDefinitionName}
|
"$variable": {name: "$variable", type: "string", value: variableDefinitionName}
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
tag: "$value",
|
|
||||||
attributes: {
|
attributes: {
|
||||||
"$name": {name: "$name", type: "string", value: "ts-body"}
|
"$name": {name: "$name", type: "string", value: "ts-body"}
|
||||||
},
|
},
|
||||||
@ -419,14 +417,12 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
tag: "$value",
|
|
||||||
attributes: {
|
attributes: {
|
||||||
"$name": {name: "$name", type: "string", value: "ts-wrapper"}
|
"$name": {name: "$name", type: "string", value: "ts-wrapper"}
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "setvariable",
|
type: "setvariable",
|
||||||
tag: "$setvariable",
|
|
||||||
attributes: {
|
attributes: {
|
||||||
"name": {name: "name", type: "string", value: variableDefinitionName},
|
"name": {name: "name", type: "string", value: variableDefinitionName},
|
||||||
"value": {name: "value", type: "string", value: ""}
|
"value": {name: "value", type: "string", value: ""}
|
||||||
@ -434,7 +430,6 @@ Widget.prototype.makeChildWidget = function(parseTreeNode,options) {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
type: "slot",
|
type: "slot",
|
||||||
tag: "$slot",
|
|
||||||
attributes: {
|
attributes: {
|
||||||
"$name": {name: "$name", type: "string", value: "ts-wrapped"}
|
"$name": {name: "$name", type: "string", value: "ts-wrapped"}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user