commit 64c8f04644d921d229069c16e37458d2e0b9afe7 parent ba96aff1944a54aea864378c7573524b70de000a Author: Simon Kornblith <simon@simonster.com> Date: Mon, 12 Mar 2012 21:38:04 -0400 Deal with item.tags missing a sort method Diffstat:
| M | chrome/content/zotero/tools/testTranslators/translatorTester.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -245,7 +245,7 @@ Zotero_TranslatorTester._sanitizeItem = function(item, forSave) { if("accessDate" in item) delete item.accessDate; //sort tags, if they're still there - if(item.tags) item.tags.sort(); + if(item.tags && typeof item.tags === "object" && "sort" in item.tags) item.tags.sort(); return item; };