Skip to content

Commit

Permalink
Support false as deprecated translate() argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jun 24, 2017
1 parent 8f63a5e commit 145a45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/zotero/xpcom/translation/translate.js
Expand Up @@ -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,
Expand Down

0 comments on commit 145a45e

Please sign in to comment.