From 6f02e0d867df65512d893dbb9dc12e0eb47ada00 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 1 Sep 2008 02:00:17 +0000 Subject: [PATCH] Fix two JS strict warnings --- chrome/content/zotero/charsetMenu.js | 2 +- chrome/content/zotero/preferences/preferences.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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"]; }