mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 14:46:55 +00:00
Major reorganisation of wikitext rendering
Getting ready to support selective refresh of DOM elements
This commit is contained in:
@@ -83,6 +83,18 @@ WikiTextParser.prototype.addDependency = function(dependency) {
|
||||
}
|
||||
};
|
||||
|
||||
WikiTextParser.prototype.addDependencies = function(dependencies) {
|
||||
if(dependencies === null) {
|
||||
this.dependencies = null;
|
||||
} else if(this.dependencies !== null){
|
||||
for(var t=0; t<dependencies.length; t++) {
|
||||
if(this.dependencies.indexOf(dependencies[t]) === -1) {
|
||||
this.dependencies.push(dependencies[t]);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
WikiTextParser.prototype.outputText = function(place,startPos,endPos) {
|
||||
if(startPos < endPos) {
|
||||
place.push({type: "text", value: this.source.substring(startPos,endPos)});
|
||||
|
||||
Reference in New Issue
Block a user