1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 02:20:28 +00:00

Minor refactor transclude widget

Preparing to fix #7592
This commit is contained in:
Jeremy Ruston 2023-07-22 14:01:24 +01:00
parent 3ddb852a16
commit ad6e09f1cb

View File

@ -47,6 +47,8 @@ TranscludeWidget.prototype.execute = function() {
this.sourceText = target.text;
this.parserType = target.type;
this.parseAsInline = target.parseAsInline;
// Set 'thisTiddler'
this.setVariable("thisTiddler",this.transcludeTitle);
// Process the transclusion according to the output type
switch(this.transcludeOutput || "text/html") {
case "text/html":
@ -266,8 +268,6 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
defaultType: this.transcludeType
});
}
// Set 'thisTiddler'
this.setVariable("thisTiddler",this.transcludeTitle);
// Return the parse tree
if(parser) {
return {