Query: item vs Item in integration.js

4 views
Skip to first unread message

Frank Bennett

unread,
Dec 29, 2009, 2:47:32 AM12/29/09
to zotero-dev
In integration.js, inside the function getCitationPositions(), there
seem to be two IDs at work. There is this (at line 1298):

citation.citationItems[0].item

and this (at line 1320):

citationItem.itemID

Is there a difference between itemID and item in this context?

Frank

skornblith

unread,
Dec 29, 2009, 4:28:23 AM12/29/09
to zotero-dev
The former is the item object (of type Zotero.CSL.Item), whereas the
latter is the ID. In the context of line 1298, there is no practical
difference; comparing the itemIDs would yield the same result.

Simon

Reply all
Reply to author
Forward
0 new messages