closes #878, Sorting broken in Nature style

This commit is contained in:
Simon Kornblith 2008-01-10 21:46:12 +00:00
parent cff54d1840
commit 7681016f4d

View File

@ -2337,6 +2337,8 @@ Zotero.CSL.ItemSet.prototype.add = function(items) {
var newItem = new Zotero.CSL.Item(items[i]);
}
newItem.setProperty("index", this.items.length);
this.itemsById[newItem.getID()] = newItem;
this.items.push(newItem);
newItems.push(newItem);