commit 145a45e8e174eaaf8f9cb759efdbbeacffbfbe08
parent 8f63a5e20df6d58f41b1f78ff7d253101eda8826
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 24 Jun 2017 19:24:29 -0400
Support `false` as deprecated translate() argument
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js
@@ -2040,7 +2040,7 @@ Zotero.Translate.Web.prototype._prepareTranslation = Zotero.Promise.method(funct
* Overload translate to set selectedItems
*/
Zotero.Translate.Web.prototype.translate = function (options = {}, ...args) {
- if (typeof options == 'number') {
+ if (typeof options == 'number' || options === false) {
Zotero.debug("Translate: translate() now takes an object -- update your code", 2);
options = {
libraryID: options,