commit 4da36c4f19502fbd993a6cb1d4972d92bc1faae0 parent f37d724a9e2171996f05fb6fd6227f8e26a17c18 Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 1 Sep 2008 02:00:17 +0000 Fix two JS strict warnings Diffstat:
| M | chrome/content/zotero/charsetMenu.js | | | 2 | +- |
| M | 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 @@ -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 @@ -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"]; }