Add tiddlerInfo to the syncadaptor saveTiddler method

print-window-tiddler
Jermolene 2014-09-24 13:15:16 +02:00
rodzic 8a0309a4bd
commit a159b5baf3
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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");

Wyświetl plik

@ -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)`