www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit df28ad6e760ad6b50522c6a24ef3a2a480cddbd7
parent 4283134d3297c89522b1e50b92818536b7816596
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue,  1 Feb 2011 07:24:59 +0000

should probably have thought harder before the last commit. change all lets to var, since it doesn't make a difference in this scope.


Diffstat:
Mchrome/content/zotero/xpcom/cite.js | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js @@ -196,19 +196,19 @@ Zotero.Cite.System.retrieveItem = function(item){ }; Zotero.Cite.System.retrieveLocale = function(lang) { - let protHandler = Components.classes["@mozilla.org/network/protocol;1?name=chrome"] + var protHandler = Components.classes["@mozilla.org/network/protocol;1?name=chrome"] .createInstance(Components.interfaces.nsIProtocolHandler); - let channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/locale/csl/locales-"+lang+".xml", "UTF-8", null)); + var channel = protHandler.newChannel(protHandler.newURI("chrome://zotero/content/locale/csl/locales-"+lang+".xml", "UTF-8", null)); try { - let rawStream = channel.open(); + var rawStream = channel.open(); } catch(e) { return false; } - let converterStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] + var converterStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .createInstance(Components.interfaces.nsIConverterInputStream); converterStream.init(rawStream, "UTF-8", 65535, Components.interfaces.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER); - let str = {}; + var str = {}; converterStream.readString(channel.contentLength, str); converterStream.close(); return str.value;