www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a19786116d0a4e932492e245e9e2d50eea6f818f
parent deea80c49566d232eb38b5cacc5a8908454de87a
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 28 Feb 2012 10:49:49 -0500

Don't error if we can't delete the timer

Diffstat:
Mchrome/content/zotero/tools/testTranslators/translatorTester.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -319,7 +319,9 @@ Zotero_TranslatorTester.prototype.fetchPageAndRunTest = function(test, testDoneC var timer = Components.classes["@mozilla.org/timer;1"]. createInstance(Components.interfaces.nsITimer); timer.initWithCallback({"notify":function() { - Zotero.Browser.deleteHiddenBrowser(hiddenBrowser); + try { + Zotero.Browser.deleteHiddenBrowser(hiddenBrowser); + } catch(e) {} }}, TEST_RUN_TIMEOUT, Components.interfaces.nsITimer.TYPE_ONE_SHOT); var me = this;