commit 4812ab6f9330c75a0364ca106caab90227aa5b0e
parent 09e53d85d5a33668e091387b1871072ca8b32259
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 20 Jun 2014 03:45:14 -0400
Fixes (cosmetic) "Q.async(...)(...) is undefined" sync error
Yield immediately so that a generator is always passed to Q.async()
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js
@@ -2676,6 +2676,8 @@ Zotero.Sync.Server.Data = new function() {
this.processUpdatedXML = function (updatedNode, lastLocalSyncDate, syncSession, defaultLibraryID, callback) {
+ yield true;
+
updatedNode.xpath = function (path) {
return Zotero.Utilities.xpath(this, path);
};