From 42cd7752affcd0fd63184e4af7b8df4ed3e35532 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 4 Mar 2012 20:35:42 -0500 Subject: [PATCH] Fix irregular syntax to please IE indexOf regexp --- chrome/content/zotero/xpcom/connector/cachedTypes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/connector/cachedTypes.js b/chrome/content/zotero/xpcom/connector/cachedTypes.js index b9433c6cf..466eb94dc 100644 --- a/chrome/content/zotero/xpcom/connector/cachedTypes.js +++ b/chrome/content/zotero/xpcom/connector/cachedTypes.js @@ -130,7 +130,8 @@ Zotero.Connector_Types = new function() { // mimics itemFields.js if(!field || !itemType) return false; - return itemType[4]/* fields */.indexOf(field[0]/* id */) !== -1; + /* fields */ /* id */ + return itemType[4].indexOf(field[0]) !== -1; }; this.getFieldIDFromTypeAndBase = function(typeIdOrName, fieldIdOrName) {