Added template support to list macro

This commit is contained in:
Jeremy Ruston
2011-12-16 10:48:36 +00:00
parent d3ede70757
commit 0823beb85d
4 changed files with 58 additions and 57 deletions

View File

@@ -44,7 +44,13 @@ WikiStore.prototype.deleteTiddler = function(title) {
};
WikiStore.prototype.tiddlerExists = function(title) {
return this.tiddlers[title] instanceof Tiddler;
var exists = this.tiddlers[title] instanceof Tiddler;
if(exists) {
return true;
} else if (this.shadows) {
return this.shadows.tiddlerExists(title);
}
return ;
};
WikiStore.prototype.addTiddler = function(tiddler) {