www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 87c4dfb893b65e5f1d034e50ee25dbd0d403cc98
parent 9d648eeb2dd26e75a924d63427e86539c8a9f2df
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 12 Dec 2011 16:41:49 -0500

Remove excessive Zotero.libraryID calls syncing deleted items

Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -3343,6 +3343,8 @@ Zotero.Sync.Server.Data = new function() { var xmlDeletedNode = doc.createElement('deleted'); var inserted = false; + var defaultLibraryID = Zotero.libraryID; + for each(var syncObject in Zotero.Sync.syncObjects) { var Type = syncObject.singular; // 'Item' var Types = syncObject.plural; // 'Items' @@ -3367,7 +3369,7 @@ Zotero.Sync.Server.Data = new function() { } var n = doc.createElement(type); - n.setAttribute('libraryID', parseInt(libraryID) ? parseInt(libraryID) : Zotero.libraryID); + n.setAttribute('libraryID', parseInt(libraryID) ? parseInt(libraryID) : defaultLibraryID); n.setAttribute('key', key); xmlDeletedObjectsNode.appendChild(n); }