1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-26 15:23:15 +00:00

Simplify method naming

This commit is contained in:
Jeremy Ruston 2023-07-29 16:52:28 +01:00
parent 99232c3c82
commit 4a39097fee

View File

@ -55,7 +55,7 @@ TranscludeWidget.prototype.execute = function() {
switch(this.transcludeOutput || "text/html") { switch(this.transcludeOutput || "text/html") {
case "text/html": case "text/html":
// Return the parse tree nodes of the target // Return the parse tree nodes of the target
target = this.getTransclusionTargetIncludingParseTreeNodes(parseAsInline); target = this.parseTransclusionTarget(parseAsInline);
this.sourceText = target.text; this.sourceText = target.text;
this.parserType = target.type; this.parserType = target.type;
this.parseAsInline = target.parseAsInline; this.parseAsInline = target.parseAsInline;
@ -70,7 +70,7 @@ TranscludeWidget.prototype.execute = function() {
break; break;
default: default:
// "text/plain" is the plain text result of wikifying the text // "text/plain" is the plain text result of wikifying the text
target = this.getTransclusionTargetIncludingParseTreeNodes(); target = this.parseTransclusionTarget();
this.sourceText = target.text; this.sourceText = target.text;
this.parserType = target.type; this.parserType = target.type;
var widgetNode = this.wiki.makeWidget(target.parser,{ var widgetNode = this.wiki.makeWidget(target.parser,{
@ -214,7 +214,7 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
/* /*
Get transcluded parse tree nodes as an object {text:,type:,parseTreeNodes:,parseAsInline:} Get transcluded parse tree nodes as an object {text:,type:,parseTreeNodes:,parseAsInline:}
*/ */
TranscludeWidget.prototype.getTransclusionTargetIncludingParseTreeNodes = function(parseAsInline) { TranscludeWidget.prototype.parseTransclusionTarget = function(parseAsInline) {
var self = this; var self = this;
var parser; var parser;
// Get the parse tree // Get the parse tree