mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-11 16:24:31 +00:00
Fix problem with deleting tiddlers with the filesystemadaptor
Fixes #266
This commit is contained in:
parent
1b75242345
commit
9f058925f7
@ -68,14 +68,12 @@ Syncer.prototype.init = function() {
|
|||||||
// Hashmap by title of {revision:,changeCount:,adaptorInfo:}
|
// Hashmap by title of {revision:,changeCount:,adaptorInfo:}
|
||||||
this.tiddlerInfo = {};
|
this.tiddlerInfo = {};
|
||||||
// Record information for known tiddlers
|
// Record information for known tiddlers
|
||||||
this.wiki.forEachTiddler(function(title,tiddler) {
|
this.wiki.forEachTiddler({includeSystem: true},function(title,tiddler) {
|
||||||
if(tiddler.fields["revision"]) {
|
|
||||||
self.tiddlerInfo[title] = {
|
self.tiddlerInfo[title] = {
|
||||||
revision: tiddler.fields["revision"],
|
revision: tiddler.fields["revision"],
|
||||||
adaptorInfo: self.syncadaptor.getTiddlerInfo(tiddler),
|
adaptorInfo: self.syncadaptor.getTiddlerInfo(tiddler),
|
||||||
changeCount: self.wiki.getChangeCount(title)
|
changeCount: self.wiki.getChangeCount(title)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
// Tasks are {type: "load"/"save"/"delete", title:, queueTime:, lastModificationTime:}
|
// Tasks are {type: "load"/"save"/"delete", title:, queueTime:, lastModificationTime:}
|
||||||
this.taskQueue = {}; // Hashmap of tasks to be performed
|
this.taskQueue = {}; // Hashmap of tasks to be performed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user