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:
parent
8a0309a4bd
commit
a159b5baf3
@ -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");
|
||||
|
@ -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)`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user