And also don't leave behind unnecessary properties.
This commit is contained in:
parent
db8b8a9662
commit
63b9c9fd36
1 changed files with 4 additions and 1 deletions
|
@ -1167,7 +1167,10 @@ Zotero.Translate.Base.prototype = {
|
||||||
if(!returnValue && error) errorString = this._generateErrorString(error);
|
if(!returnValue && error) errorString = this._generateErrorString(error);
|
||||||
|
|
||||||
if(oldState === "detect") {
|
if(oldState === "detect") {
|
||||||
if(this._clearTranslator) delete this.translator;
|
if(this._clearTranslator) {
|
||||||
|
delete this.translator;
|
||||||
|
delete this._clearTranslator;
|
||||||
|
}
|
||||||
|
|
||||||
if(this._potentialTranslators.length) {
|
if(this._potentialTranslators.length) {
|
||||||
var lastTranslator = this._potentialTranslators.shift();
|
var lastTranslator = this._potentialTranslators.shift();
|
||||||
|
|
Loading…
Reference in a new issue