mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fix some variable references to use a local var instead of a closure
This commit is contained in:
parent
e21bb9c514
commit
970091b11a
@ -87,12 +87,12 @@ Store.prototype = {
|
||||
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);
|
||||
if (!rec.cleartext)
|
||||
this.remove(rec);
|
||||
else if (!this.itemExists(rec.id))
|
||||
this.create(rec);
|
||||
else
|
||||
this.update(record);
|
||||
this.update(rec);
|
||||
};
|
||||
fn.async(this, onComplete, record);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user