correct automatic handlers

This commit is contained in:
Simon Kornblith 2010-11-06 19:48:31 +00:00
parent 379888eec4
commit 32d97b9ef9

View file

@ -200,11 +200,10 @@ Zotero.Translate.Sandbox = {
"loadTranslator":function(translate, type) {
const setDefaultHandlers = function(translate, translation) {
if(Zotero.Utilities.isEmpty(translation._handlers)) {
if(type === "export") {
if(type !== "export") {
translation.setHandler("itemDone", function(obj, item) { item.complete() });
} else if(type === "web") {
translation.setHandler("selectItems", translate._handlers["selectItems"]);
}
translation.setHandler("selectItems", translate._handlers["selectItems"]);
}
}