diff --git a/chrome/content/zotero/charsetMenu.js b/chrome/content/zotero/charsetMenu.js index 97b3622b3..c697ade75 100644 --- a/chrome/content/zotero/charsetMenu.js +++ b/chrome/content/zotero/charsetMenu.js @@ -20,7 +20,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero_Charset_Menu = new function() { +var Zotero_Charset_Menu = new function() { this.populate = populate; /** diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index a3b199034..14e27f6c3 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -40,8 +40,10 @@ function init() initSearchPane(); var charsetMenu = document.getElementById("zotero-import-charsetMenu"); - charsetMap = Zotero_Charset_Menu.populate(charsetMenu, false); - charsetMenu.selectedItem = charsetMap[Zotero.Prefs.get("import.charset")] ? charsetMap[Zotero.Prefs.get("import.charset")] : charsetMap["auto"]; + var charsetMap = Zotero_Charset_Menu.populate(charsetMenu, false); + charsetMenu.selectedItem = + charsetMap[Zotero.Prefs.get("import.charset")] ? + charsetMap[Zotero.Prefs.get("import.charset")] : charsetMap["auto"]; }