From 0e79cf247c9a3203870745a6a09003b8fb9a3f47 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 21 Jan 2013 13:29:26 -0500 Subject: [PATCH] Only set timeout to 50 if undefined --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 30cc02f2f..a8064121f 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1454,7 +1454,7 @@ const ZOTERO_CONFIG = { * @param {Integer} [timeout=50] Maximum number of milliseconds to wait */ this.wait = function (timeout) { - if (!timeout) { + if (timeout === undefined) { timeout = 50; } var mainThread = Zotero.mainThread;