www

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

commit 42d15bf2dbf521f2d02b0820edbc7c34d09566ff
parent 07d94f0fd0a08934d31b80ff2239f666d62860a0
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri,  1 Mar 2013 09:24:19 -0800

Merge pull request #250 from aurimasv/parentTranslator

parentTranslator in detect calls
Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1353,6 +1353,7 @@ Zotero.Translate.Base.prototype = { this._generateSandbox(); } + this._currentTranslator = translator; this._runningAsyncProcesses = 0; this._returnValue = undefined; this._aborted = false; @@ -1440,8 +1441,8 @@ Zotero.Translate.Base.prototype = { this._sandboxManager.sandbox.Zotero.isConnector = Zotero.isConnector || false; this._sandboxManager.sandbox.Zotero.isServer = Zotero.isServer || false; this._sandboxManager.sandbox.Zotero.parentTranslator = this._parentTranslator - && this._parentTranslator.translator && this._parentTranslator.translator[0] ? - this._parentTranslator.translator[0].translatorID : null; + && this._parentTranslator._currentTranslator ? + this._parentTranslator._currentTranslator.translatorID : null; // create shortcuts this._sandboxManager.sandbox.Z = this._sandboxManager.sandbox.Zotero;