www

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

commit db8b8a96621b0812148e49dffa64c6dc823cc505
parent 72d3b8b711f267212644f5f81f5c51d8b5418c6b
Author: aurimasv <aurimas.dev@gmail.com>
Date:   Mon, 18 Feb 2013 01:42:08 -0600

Do not overwrite set translators

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -1167,6 +1167,8 @@ Zotero.Translate.Base.prototype = { if(!returnValue && error) errorString = this._generateErrorString(error); if(oldState === "detect") { + if(this._clearTranslator) delete this.translator; + if(this._potentialTranslators.length) { var lastTranslator = this._potentialTranslators.shift(); var lastProperToProxyFunction = this._properToProxyFunctions ? this._properToProxyFunctions.shift() : null; @@ -1321,7 +1323,10 @@ Zotero.Translate.Base.prototype = { this.incrementAsyncProcesses("Zotero.Translate#getTranslators"); - this.translator = [translator]; + if(!this.translator) { + this.translator = [translator]; + this._clearTranslator = true; + } try { var returnValue = this._sandboxManager.sandbox["detect"+this._entryFunctionSuffix].apply(null, this._getParameters());