[Pkg-mozext-commits] [adblock-plus] 214/464: Automatically define Cc & Co. in the module's scope

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:18 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 029453eb28575999ec673529689e5de661b97d33
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Jan 23 15:55:44 2012 +0100

    Automatically define Cc & Co. in the module's scope
---
 bootstrap.js.tmpl | 4 ++++
 keySelector.js    | 4 ----
 prefs.js          | 4 ----
 windowObserver.js | 4 ----
 4 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/bootstrap.js.tmpl b/bootstrap.js.tmpl
index ccc6caa..1364b68 100644
--- a/bootstrap.js.tmpl
+++ b/bootstrap.js.tmpl
@@ -113,6 +113,10 @@ function require(module)
     {
     {%- endif %}
       scopes[module] = {
+        Cc: Cc,
+        Ci: Ci,
+        Cr: Cr,
+        Cu: Cu,
         require: require,
         {% if hasShutdownHandlers %}
         onShutdown: onShutdown,
diff --git a/keySelector.js b/keySelector.js
index a524495..1155f67 100644
--- a/keySelector.js
+++ b/keySelector.js
@@ -4,10 +4,6 @@
  * http://mozilla.org/MPL/2.0/.
  */
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
-
 Cu.import("resource://gre/modules/Services.jsm");
 
 let validModifiers =
diff --git a/prefs.js b/prefs.js
index 5c65458..a5937a7 100644
--- a/prefs.js
+++ b/prefs.js
@@ -4,10 +4,6 @@
  * http://mozilla.org/MPL/2.0/.
  */
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
-
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
diff --git a/windowObserver.js b/windowObserver.js
index a50bf09..fbe4970 100644
--- a/windowObserver.js
+++ b/windowObserver.js
@@ -4,10 +4,6 @@
  * http://mozilla.org/MPL/2.0/.
  */
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
-
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list