Fix irregular syntax to please IE indexOf regexp

This commit is contained in:
Simon Kornblith 2012-03-04 20:35:42 -05:00
parent 86dda4e018
commit 42cd7752af

View File

@ -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) {