From b5d236fc9d46cedc9e4d5a94fbedc61f40a3624a Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 20 Feb 2012 04:18:06 -0500 Subject: [PATCH] Fire a DOM event when we have translators --- .../content/zotero/tools/testTranslators/testTranslators.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/tools/testTranslators/testTranslators.js b/chrome/content/zotero/tools/testTranslators/testTranslators.js index cb79dd6b46..d4a4d01feb 100644 --- a/chrome/content/zotero/tools/testTranslators/testTranslators.js +++ b/chrome/content/zotero/tools/testTranslators/testTranslators.js @@ -425,6 +425,10 @@ function haveTranslators(translators, type) { translatorTestViewsToRun[type].push(translatorTestView); } } + + var ev = document.createEvent('HTMLEvents'); + ev.initEvent('ZoteroHaveTranslators-'+type, true, true); + document.dispatchEvent(ev); } /**