Get rid of the "new_" prefix we had on some methods

There's still the "old_" prefix to get rid of too.
This commit is contained in:
Jeremy Ruston
2013-11-08 08:51:14 +00:00
parent b7cb1d3391
commit cc0011abd3
23 changed files with 61 additions and 61 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ ListWidget.prototype.getTiddlerList = function() {
ListWidget.prototype.getEmptyMessage = function() {
var emptyMessage = this.getAttribute("emptyMessage",""),
parser = this.wiki.new_parseText("text/vnd.tiddlywiki",emptyMessage,{parseAsInline: true});
parser = this.wiki.parseText("text/vnd.tiddlywiki",emptyMessage,{parseAsInline: true});
if(parser) {
return parser.tree;
} else {
+2 -2
View File
@@ -53,12 +53,12 @@ MacroCallWidget.prototype.execute = function() {
// Are we rendering to HTML?
if(this.renderOutput === "text/html") {
// If so we'll return the parsed macro
var parser = this.wiki.new_parseText(this.parseType,text,
var parser = this.wiki.parseText(this.parseType,text,
{parseAsInline: !this.parseTreeNode.isBlock});
parseTreeNodes = parser ? parser.tree : [];
} else {
// Otherwise, we'll render the text
var plainText = this.wiki.new_renderText("text/plain",this.parseType,text,{parentWidget: this});
var plainText = this.wiki.renderText("text/plain",this.parseType,text,{parentWidget: this});
parseTreeNodes = [{type: "text", text: plainText}];
}
// Construct the child widgets
+1 -1
View File
@@ -50,7 +50,7 @@ TranscludeWidget.prototype.execute = function() {
// Set context variables for recursion detection
this.setVariable("transclusion",recursionMarker);
// Parse the text reference
var parser = this.wiki.new_parseTextReference(
var parser = this.wiki.parseTextReference(
this.transcludeTitle,
this.transcludeField,
this.transcludeIndex,
+1 -1
View File
@@ -121,7 +121,7 @@ ViewWidget.prototype.getValueAsText = function() {
};
ViewWidget.prototype.getValueAsHtmlWikified = function() {
return this.wiki.new_renderText("text/html","text/vnd.tiddlywiki",this.getValueAsText(),this);
return this.wiki.renderText("text/html","text/vnd.tiddlywiki",this.getValueAsText(),this);
};
ViewWidget.prototype.getValueAsHtmlEncoded = function() {
+1 -1
View File
@@ -218,7 +218,7 @@ Widget.prototype.computeAttributes = function() {
value = self.wiki.getTextReference(attribute.textReference,"",self.getVariable("currentTiddler"));
} else if(attribute.type === "macro") {
var text = self.getVariable(attribute.value.name,{params: attribute.value.params});
value = self.wiki.new_renderText("text/plain","text/vnd.tiddlywiki",text);
value = self.wiki.renderText("text/plain","text/vnd.tiddlywiki",text);
} else { // String attribute
value = attribute.value;
}