Make translator loading asynchronous

Other changes:
- Factored out Zotero.Translators from Zotero.Translator. The latter
  should be usable in the bookmarklet and connectors without changes.
- configOptions, displayOptions, and hiddenPrefs no longer copy on
  read. I don't think this actually affects any existing code.
- Zotero.Translate._loadTranslator() now returns a promise
This commit is contained in:
Simon Kornblith 2013-08-17 03:08:59 -04:00
parent efc4455476
commit 526441c3ca
4 changed files with 589 additions and 539 deletions

View file

@ -44,6 +44,7 @@ const xpcomFilesAll = [
'progressWindow',
'translation/translate',
'translation/translate_firefox',
'translation/translator',
'translation/tlds',
'utilities',
'utilities_internal',
@ -104,7 +105,7 @@ const xpcomFilesLocal = [
'timeline',
'uri',
'translation/translate_item',
'translation/translator',
'translation/translators',
'server_connector'
];