[Pkg-mozext-commits] [requestpolicy] 149/257: [ref] use "var" for all exported variables
David Prévot
taffit at moszumanska.debian.org
Thu Jan 28 03:20:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 1763edeb60e677f15fafbcd528ee234db1b9df41
Author: Martin Kimmerle <dev at 256k.de>
Date: Mon Nov 30 22:17:01 2015 +0100
[ref] use "var" for all exported variables
---
src/content/lib/environment.process.js | 2 +-
src/content/lib/logger.jsm | 2 +-
src/content/lib/prefs.jsm | 6 +++---
src/content/lib/ruleset-storage.jsm | 2 +-
src/content/lib/script-loader.jsm | 2 +-
src/content/lib/utils.jsm | 2 +-
src/content/lib/utils/constants.jsm | 2 +-
src/content/lib/utils/dom.jsm | 2 +-
src/content/lib/utils/info.jsm | 2 +-
src/content/lib/utils/strings.jsm | 2 +-
src/content/lib/utils/windows.jsm | 2 +-
src/content/main/about-uri.jsm | 2 +-
src/content/main/content-policy.jsm | 2 +-
src/content/main/pref-manager.jsm | 2 +-
src/content/main/requestpolicy-service.jsm | 2 +-
src/content/ui/frame.blocked-content.js | 2 +-
src/content/ui/frame.dom-content-loaded.js | 2 +-
17 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/content/lib/environment.process.js b/src/content/lib/environment.process.js
index 7ab3b0a..8de0269 100644
--- a/src/content/lib/environment.process.js
+++ b/src/content/lib/environment.process.js
@@ -24,7 +24,7 @@
// ProcessEnvironment is either a ParentProcessEnvironment or
// a ChildProcessEnvironment.
-let ProcessEnvironment = (function() {
+var ProcessEnvironment = (function() {
// determine if this is the main process
diff --git a/src/content/lib/logger.jsm b/src/content/lib/logger.jsm
index c6bebcf..4354d06 100644
--- a/src/content/lib/logger.jsm
+++ b/src/content/lib/logger.jsm
@@ -40,7 +40,7 @@ ScriptLoader.importModules([
/**
* Provides logging methods
*/
-let Logger = (function() {
+var Logger = (function() {
let self = {
TYPE_CONTENT: 1, // content whose origin isn't known more specifically
diff --git a/src/content/lib/prefs.jsm b/src/content/lib/prefs.jsm
index 1dab227..8cc50be 100644
--- a/src/content/lib/prefs.jsm
+++ b/src/content/lib/prefs.jsm
@@ -34,14 +34,14 @@ ScriptLoader.importModules(["lib/environment"], this);
-let rpPrefBranch = Services.prefs.getBranch("extensions.requestpolicy.")
+var rpPrefBranch = Services.prefs.getBranch("extensions.requestpolicy.")
.QueryInterface(Ci.nsIPrefBranch2);
-let rootPrefBranch = Services.prefs.getBranch("")
+var rootPrefBranch = Services.prefs.getBranch("")
.QueryInterface(Ci.nsIPrefBranch2);
-let Prefs = (function() {
+var Prefs = (function() {
let self = {};
let defaultAllow = true;
diff --git a/src/content/lib/ruleset-storage.jsm b/src/content/lib/ruleset-storage.jsm
index 0de8051..de2c65c 100644
--- a/src/content/lib/ruleset-storage.jsm
+++ b/src/content/lib/ruleset-storage.jsm
@@ -34,7 +34,7 @@ ScriptLoader.importModules([
], this);
-let RulesetStorage = {
+var RulesetStorage = {
/**
* @return {RawRuleset}
diff --git a/src/content/lib/script-loader.jsm b/src/content/lib/script-loader.jsm
index b9f6a8a..9c6bef7 100644
--- a/src/content/lib/script-loader.jsm
+++ b/src/content/lib/script-loader.jsm
@@ -53,7 +53,7 @@ function logSevereError(msg, e) {
-let ScriptLoader = (function() {
+var ScriptLoader = (function() {
let importedModuleURIs = {};
diff --git a/src/content/lib/utils.jsm b/src/content/lib/utils.jsm
index 58db1db..768050e 100644
--- a/src/content/lib/utils.jsm
+++ b/src/content/lib/utils.jsm
@@ -40,7 +40,7 @@ ScriptLoader.importModules([
-let Utils = (function() {
+var Utils = (function() {
let self = {};
/**
diff --git a/src/content/lib/utils/constants.jsm b/src/content/lib/utils/constants.jsm
index 8c24377..aab9bcf 100644
--- a/src/content/lib/utils/constants.jsm
+++ b/src/content/lib/utils/constants.jsm
@@ -27,7 +27,7 @@ const Cu = Components.utils;
let EXPORTED_SYMBOLS = ["C"];
-let C = {};
+var C = {};
// #ifdef AMO
C.EXTENSION_ID = "rpcontinued at requestpolicy.org";
diff --git a/src/content/lib/utils/dom.jsm b/src/content/lib/utils/dom.jsm
index 899f6fa..d0919ba 100644
--- a/src/content/lib/utils/dom.jsm
+++ b/src/content/lib/utils/dom.jsm
@@ -29,7 +29,7 @@ Cu.import("resource://gre/modules/Services.jsm");
let EXPORTED_SYMBOLS = ["DOMUtils"];
-let DOMUtils = {};
+var DOMUtils = {};
/**
* Function that takes a DOM Element or an Array of DOM elements and removes
diff --git a/src/content/lib/utils/info.jsm b/src/content/lib/utils/info.jsm
index ba77b81..2bc16e1 100644
--- a/src/content/lib/utils/info.jsm
+++ b/src/content/lib/utils/info.jsm
@@ -42,7 +42,7 @@ if (ProcessEnvironment.isMainProcess) {
-let Info = (function() {
+var Info = (function() {
let self = {};
self = {};
diff --git a/src/content/lib/utils/strings.jsm b/src/content/lib/utils/strings.jsm
index 8e8b50c..9c32c08 100644
--- a/src/content/lib/utils/strings.jsm
+++ b/src/content/lib/utils/strings.jsm
@@ -36,7 +36,7 @@ Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
-let StringUtils = (function() {
+var StringUtils = (function() {
let self = {};
XPCOMUtils.defineLazyGetter(self, "strbundle", function() {
diff --git a/src/content/lib/utils/windows.jsm b/src/content/lib/utils/windows.jsm
index 0fc98c5..f553274 100644
--- a/src/content/lib/utils/windows.jsm
+++ b/src/content/lib/utils/windows.jsm
@@ -32,7 +32,7 @@ ScriptLoader.importModules(["lib/prefs"], this);
-let WindowUtils = (function() {
+var WindowUtils = (function() {
let self = {};
self.getChromeWindow = function(aContentWindow) {
diff --git a/src/content/main/about-uri.jsm b/src/content/main/about-uri.jsm
index b3e2cfc..27fc005 100644
--- a/src/content/main/about-uri.jsm
+++ b/src/content/main/about-uri.jsm
@@ -65,7 +65,7 @@ function getURI(aURI) {
-let AboutRequestPolicy = (function() {
+var AboutRequestPolicy = (function() {
let self = {
classDescription: "about:requestpolicy",
contractID: "@mozilla.org/network/protocol/about;1?what=requestpolicy",
diff --git a/src/content/main/content-policy.jsm b/src/content/main/content-policy.jsm
index 7c4691f..851ec71 100644
--- a/src/content/main/content-policy.jsm
+++ b/src/content/main/content-policy.jsm
@@ -45,7 +45,7 @@ ScriptLoader.importModules([
// TODO: implement nsIChannelEventSink to catch redirects as Adblock Plus does.
-let PolicyImplementation = (function() {
+var PolicyImplementation = (function() {
let xpcom_categories = ["content-policy"];
let self = {
diff --git a/src/content/main/pref-manager.jsm b/src/content/main/pref-manager.jsm
index 229d996..b617845 100644
--- a/src/content/main/pref-manager.jsm
+++ b/src/content/main/pref-manager.jsm
@@ -51,7 +51,7 @@ XPCOMUtils.defineLazyGetter(globalScope, "rootPrefBranch", function() {
-let PrefManager = (function() {
+var PrefManager = (function() {
let self = {};
diff --git a/src/content/main/requestpolicy-service.jsm b/src/content/main/requestpolicy-service.jsm
index db03329..4e7bcc8 100644
--- a/src/content/main/requestpolicy-service.jsm
+++ b/src/content/main/requestpolicy-service.jsm
@@ -45,7 +45,7 @@ ScriptLoader.importModules([
-let rpService = (function() {
+var rpService = (function() {
let self = {};
// /////////////////////////////////////////////////////////////////////////
diff --git a/src/content/ui/frame.blocked-content.js b/src/content/ui/frame.blocked-content.js
index 1b00e00..0a7a658 100644
--- a/src/content/ui/frame.blocked-content.js
+++ b/src/content/ui/frame.blocked-content.js
@@ -20,7 +20,7 @@
* ***** END LICENSE BLOCK *****
*/
-let ManagerForBlockedContent = (function() {
+var ManagerForBlockedContent = (function() {
let self = {};
diff --git a/src/content/ui/frame.dom-content-loaded.js b/src/content/ui/frame.dom-content-loaded.js
index bbb6dbb..cf8b080 100644
--- a/src/content/ui/frame.dom-content-loaded.js
+++ b/src/content/ui/frame.dom-content-loaded.js
@@ -21,7 +21,7 @@
*/
-let ManagerForDOMContentLoaded = (function() {
+var ManagerForDOMContentLoaded = (function() {
let self = {};
let {DomainUtil} = ScriptLoader.importModule("lib/utils/domains");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list