Fix search translation bug from 7950d3a7e2

This commit is contained in:
Simon Kornblith 2014-06-19 21:31:17 -04:00
parent 37f4e61ef2
commit 3a8c77e983

View File

@ -2242,9 +2242,8 @@ Zotero.Translate.Search.prototype.complete = function(returnValue, error) {
*/
Zotero.Translate.Search.prototype._getParameters = function() {
if(Zotero.isFx) {
var search = this._sandboxManager._copyObject(this.search.wrappedJSObject ?
this.search.wrappedJSObject : this.search);
search.complete = this._sandboxZotero.Item.prototype.complete
return [this._sandboxManager._copyObject(this.search.wrappedJSObject ?
this.search.wrappedJSObject : this.search)];
}
return [this.search];
};