And also don't leave behind unnecessary properties.

This commit is contained in:
aurimasv 2013-02-18 01:47:45 -06:00
parent db8b8a9662
commit 63b9c9fd36

View file

@ -1167,7 +1167,10 @@ Zotero.Translate.Base.prototype = {
if(!returnValue && error) errorString = this._generateErrorString(error);
if(oldState === "detect") {
if(this._clearTranslator) delete this.translator;
if(this._clearTranslator) {
delete this.translator;
delete this._clearTranslator;
}
if(this._potentialTranslators.length) {
var lastTranslator = this._potentialTranslators.shift();