1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 19:10:28 +00:00

Add tiddlerInfo to the syncadaptor saveTiddler method

This commit is contained in:
Jermolene 2014-09-24 13:15:16 +02:00
parent 8a0309a4bd
commit a159b5baf3
2 changed files with 4 additions and 1 deletions

View File

@ -467,6 +467,8 @@ Syncer.prototype.dispatchTask = function(task,callback) {
};
// Invoke the callback
callback(null);
},{
tiddlerInfo: self.tiddlerInfo[task.title]
});
} else {
this.logger.log(" Not Dispatching 'save' task:",task.title,"tiddler does not exist");

View File

@ -79,13 +79,14 @@ This method is optional. If an adaptor doesn't implement it then synchronisation
|!Parameter |!Description |
|callback |Callback function invoked with parameter `err,tiddlers`, where `tiddlers` is an array of tiddler field objects |
!! `saveTiddler(tiddler,callback)`
!! `saveTiddler(tiddler,callback,tiddlerInfo)`
Saves a tiddler to the server.
|!Parameter |!Description |
|tiddler |Tiddler to be saved |
|callback |Callback function invoked with parameter `err,adaptorInfo,revision` |
|tiddlerInfo |The tiddlerInfo maintained by the syncer for this tiddler |
!! `loadTiddler(title,callback)`