fix bookmark deletion sync

This commit is contained in:
Dan Mills 2008-11-25 01:49:02 +09:00
parent e5c9923591
commit fb99c9f85e

View File

@ -918,10 +918,10 @@ BookmarksStore.prototype = {
this._log.trace("RECORD: " + record.id + " -> " + uneval(record.cleartext));
if (!this._lookup[record.id])
this._createCommand({GUID: record.id, data: record.cleartext});
else if (record.cleartext == "")
if (record.cleartext == "")
this._removeCommand({GUID: record.id});
else if (!this._lookup[record.id])
this._createCommand({GUID: record.id, data: record.cleartext});
else {
let data = Utils.deepCopy(record.cleartext);
delete data.GUID;