Properly scope a couple variables in Frank's patch

This commit is contained in:
Dan Stillman 2009-03-06 19:49:13 +00:00
parent 4f6491d6ad
commit accce9f2b4

View file

@ -159,7 +159,8 @@ var Zotero_Citation_Dialog = new function () {
if (itemID) {
// _itemData[itemDataID] = new Object();
_itemData[itemID] = new Object();
for (box in _preserveData) {
var element;
for (var box in _preserveData) {
element = document.getElementById(box);
// _itemData[itemDataID][box] = element[_preserveData[box]];
_itemData[itemID][box] = element[_preserveData[box]];