From e2b62580d1ed9a761b7d4fa97ee96a79d8ad503a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 8 May 2015 13:27:28 -0400 Subject: [PATCH] Fix errorHandler check in DataObject.save() --- chrome/content/zotero/xpcom/data/dataObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index 62086082c..20f0a9c3b 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -584,7 +584,7 @@ Zotero.DataObject.prototype.save = Zotero.Promise.coroutine(function* (options) Zotero.debug(e2, 1); }) .then(function() { - if (options.errorHandler(e)) { + if (options.errorHandler) { options.errorHandler(e); } else {