From 3c28e25eab1b104585628d010f78e3dcf1df1cc5 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 5 Nov 2010 03:10:56 +0000 Subject: [PATCH] remove abstracted data layer calls --- chrome/content/zotero/xpcom/utilities.js | 42 ++++++++---------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index a0d1abc94..2303c97a5 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -513,14 +513,10 @@ Zotero.Utilities = { * @type Boolean */ "itemTypeExists":function(type) { - if(Zotero.isConnector) { - return !!Zotero.Connector.Data.itemTypes[type]; + if(Zotero.ItemTypes.getID(type)) { + return true; } else { - if(Zotero.ItemTypes.getID(type)) { - return true; - } else { - return false; - } + return false; } }, @@ -531,16 +527,12 @@ Zotero.Utilities = { * @return {String[]} Creator types */ "getCreatorsForType":function(type) { - if(Zotero.isConnector) { - return Zotero.Connector.Data.itemTypes[type].creatorTypes.slice(0); - } else { - var types = Zotero.CreatorTypes.getTypesForItemType(Zotero.ItemTypes.getID(type)); - var cleanTypes = new Array(); - for(var i=0; i