commit accce9f2b4ec28eeccf4e7d83a614e92cc1447ec
parent 4f6491d6ad46ce310d495f26194d050874104267
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 6 Mar 2009 19:49:13 +0000
Properly scope a couple variables in Frank's patch
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/addCitationDialog.js b/chrome/content/zotero/addCitationDialog.js
@@ -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]];