Only set timeout to 50 if undefined

This commit is contained in:
Simon Kornblith 2013-01-21 13:29:26 -05:00
parent 502f814fc4
commit 0e79cf247c

View File

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