Fix errorHandler check in DataObject.save()

This commit is contained in:
Dan Stillman 2015-05-08 13:27:28 -04:00
parent 3349930483
commit e2b62580d1

View file

@ -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 {