1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 11:59:58 +00:00

Added dummy support for missing tiddlers and orphans

And also proper support for getShadowTitles()
This commit is contained in:
Jeremy Ruston 2011-12-28 16:10:30 +00:00
parent ed28773178
commit 32ff9e46b1

View File

@ -95,6 +95,7 @@ WikiStore.prototype.forEachTiddler = function(/* [sortField,[excludeTag,]]callba
};
WikiStore.prototype.getTitles = function(sortField,excludeTag) {
sortField = sortField || "title";
var tiddlers = [];
this.forEachTiddler(sortField,excludeTag,function(title,tiddler) {
tiddlers.push(title);
@ -102,6 +103,18 @@ WikiStore.prototype.getTitles = function(sortField,excludeTag) {
return tiddlers;
};
WikiStore.prototype.getMissingTitles = function() {
return [];
};
WikiStore.prototype.getOrphanTitles = function() {
return [];
};
WikiStore.prototype.getShadowTitles = function() {
return this.shadows ? this.shadows.getTitles() : [];
};
WikiStore.prototype.parseTiddler = function(title) {
var tiddler = this.getTiddler(title);
if(tiddler) {