mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
add applyImcoming to store base class
This commit is contained in:
parent
3c88a35efd
commit
59d28a8a5c
@ -84,6 +84,20 @@ Store.prototype = {
|
||||
this._log = Log4Moz.repository.getLogger("Store." + this._logName);
|
||||
},
|
||||
|
||||
applyIncoming: function BStore_applyIncoming(onComplete, record) {
|
||||
let fn = function(rec) {
|
||||
let self = yield;
|
||||
if (!record.cleartext)
|
||||
this.remove(record);
|
||||
else if (!this.itemExists(record.id))
|
||||
this.create(record);
|
||||
else
|
||||
this.update(record);
|
||||
};
|
||||
fn.async(this, onComplete, record);
|
||||
},
|
||||
|
||||
// FIXME unused now
|
||||
_applyCommands: function Store__applyCommands(commandList) {
|
||||
let self = yield;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user