Fix irregular syntax to please IE indexOf regexp
This commit is contained in:
parent
86dda4e018
commit
42cd7752af
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user