[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r20092: {torbutton} Fix a couple strict javascript warnings in FF3.5. (torbutton/trunk/src/chrome/content)



Author: mikeperry
Date: 2009-07-19 22:56:13 -0400 (Sun, 19 Jul 2009)
New Revision: 20092

Modified:
   torbutton/trunk/src/chrome/content/torbutton.js
   torbutton/trunk/src/chrome/content/torbutton_util.js
Log:

Fix a couple strict javascript warnings in FF3.5.



Modified: torbutton/trunk/src/chrome/content/torbutton.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton.js	2009-07-20 01:33:09 UTC (rev 20091)
+++ torbutton/trunk/src/chrome/content/torbutton.js	2009-07-20 02:56:13 UTC (rev 20092)
@@ -722,6 +722,8 @@
     var o_statuspanel = torbutton_get_statuspanel();
     if (!window.statusbar.visible) return;
     var o_stringbundle = torbutton_get_stringbundle();
+    var label = "";
+    var tooltip = "";
 
     if (mode) {
         label   = o_stringbundle.GetStringFromName("torbutton.panel.label.enabled");
@@ -841,7 +843,7 @@
 
         // Regex match for 3 letter code
         var re = new RegExp('\\((\\S+)\\)', "gm");
-        match = re.exec(d.toString());
+        var match = re.exec(d.toString());
         // Parse parens. If parseable, use. Otherwise set TZ=""
         var set = ""
         if(match) {

Modified: torbutton/trunk/src/chrome/content/torbutton_util.js
===================================================================
--- torbutton/trunk/src/chrome/content/torbutton_util.js	2009-07-20 01:33:09 UTC (rev 20091)
+++ torbutton/trunk/src/chrome/content/torbutton_util.js	2009-07-20 02:56:13 UTC (rev 20092)
@@ -83,6 +83,7 @@
 function torbutton_check_status() {
     var liveprefs = false;
     var torprefs = false;
+    var remote_dns = true;
     torbutton_log(1, "Check status");
 
     liveprefs = torbutton_get_prefbranch('network.proxy.');