commit a27f7259ec826f28e92bb8307ac32cc09fdd5845
parent b5d236fc9d46cedc9e4d5a94fbedc61f40a3624a
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 20 Feb 2012 04:46:34 -0500
Use Zotero.setTimeout when possible
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js
@@ -163,7 +163,7 @@ Zotero_TranslatorTester.prototype._runTestsRecursively = function(testDoneCallba
this.runTest(test, null, callback);
}
- window.setTimeout(function() {
+ (Zotero.setTimeout ? Zotero : window).setTimeout(function() {
callback(me, test, "failed", "Test timed out after "+TEST_RUN_TIMEOUT+" seconds");
}, TEST_RUN_TIMEOUT);
};