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

[or-cvs] [https-everywhere/master 2/2] Code-shortening.



Author: Chris Palmer <chris@xxxxxxx>
Date: Fri, 29 Oct 2010 16:25:29 -0700
Subject: Code-shortening.
Commit: 85853a64a3b7ad435081c81cf7288bde032a97b9

---
 src/components/https-everywhere.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/https-everywhere.js b/src/components/https-everywhere.js
index c5163a0..9ba17de 100644
--- a/src/components/https-everywhere.js
+++ b/src/components/https-everywhere.js
@@ -119,10 +119,10 @@ INCLUDE('IOUtil', 'HTTPSRules', 'HTTPS', 'Thread');
 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
 
 function HTTPSEverywhere() {
-  // Hacks to set up logging in each component
-  HTTPS.log = https_everywhereLog;
-  HTTPSRules.log = https_everywhereLog;
-  RuleWriter.log = https_everywhereLog;
+
+  // Set up logging in each component:
+  HTTPS.log = HTTPSRules.log = RuleWriter.log = this.log = https_everywhereLog;
+
   this.log = https_everywhereLog;
   this.wrappedJSObject = this;
   this.https_rules = HTTPSRules;
-- 
1.7.1