[Pkg-mozext-commits] [requestpolicy] 84/257: [fix] Module Patterns: Fix JavaScript issues in Nightly

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:19:59 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 c98af409607dfd9709bdb309fe5c2459f30dda45
Author: Martin Kimmerle <dev at 256k.de>
Date:   Fri Oct 16 01:26:08 2015 +0200

    [fix] Module Patterns: Fix JavaScript issues in Nightly
    
    These errors are fixed:
    * ReferenceError: can't access lexical declaration `PolicyManager'
    before initialization
    * TypeError: redeclaration of non-configurable global property
    PolicyManager
---
 src/content/lib/policy-manager.alias-functions.js | 2 +-
 src/content/lib/policy-manager.jsm                | 2 +-
 src/content/lib/request-processor.compat.js       | 2 +-
 src/content/lib/request-processor.jsm             | 2 +-
 src/content/lib/request-processor.redirects.js    | 2 +-
 src/content/main/window-manager-toolbarbutton.js  | 2 +-
 src/content/main/window-manager.jsm               | 2 +-
 src/content/main/window-manager.listener.js       | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/content/lib/policy-manager.alias-functions.js b/src/content/lib/policy-manager.alias-functions.js
index 99de8cf..4b87d66 100644
--- a/src/content/lib/policy-manager.alias-functions.js
+++ b/src/content/lib/policy-manager.alias-functions.js
@@ -22,7 +22,7 @@
  */
 
 
-let PolicyManager = (function(self) {
+PolicyManager = (function(self) {
 
   self.addAllowRule = self.addRule.bind(this, C.RULE_ACTION_ALLOW);
   self.addTemporaryAllowRule = self.addTemporaryRule.bind(this,
diff --git a/src/content/lib/policy-manager.jsm b/src/content/lib/policy-manager.jsm
index a11435c..775ee51 100644
--- a/src/content/lib/policy-manager.jsm
+++ b/src/content/lib/policy-manager.jsm
@@ -79,7 +79,7 @@ function notifyRulesChanged() {
  * Provides a simplified interface to handling multiple
  * rulesets, checking requests against multiple rulesets, etc.
  */
-let PolicyManager = (function(self) {
+var PolicyManager = (function(self) {
 
 
   let userRulesets = {};
diff --git a/src/content/lib/request-processor.compat.js b/src/content/lib/request-processor.compat.js
index 2ff87ca..3e9572c 100644
--- a/src/content/lib/request-processor.compat.js
+++ b/src/content/lib/request-processor.compat.js
@@ -32,7 +32,7 @@ ScriptLoader.importModules([
 
 
 
-let RequestProcessor = (function(self) {
+RequestProcessor = (function(self) {
   let internal = Utils.moduleInternal(self);
 
 
diff --git a/src/content/lib/request-processor.jsm b/src/content/lib/request-processor.jsm
index 1bb77f6..35e638b 100644
--- a/src/content/lib/request-processor.jsm
+++ b/src/content/lib/request-processor.jsm
@@ -56,7 +56,7 @@ ScriptLoader.defineLazyModuleGetters({
 
 
 
-let RequestProcessor = (function(self) {
+var RequestProcessor = (function(self) {
   let internal = Utils.moduleInternal(self);
 
 
diff --git a/src/content/lib/request-processor.redirects.js b/src/content/lib/request-processor.redirects.js
index a690e0d..203ee5e 100644
--- a/src/content/lib/request-processor.redirects.js
+++ b/src/content/lib/request-processor.redirects.js
@@ -41,7 +41,7 @@ ScriptLoader.importModules([
 
 
 
-let RequestProcessor = (function(self) {
+RequestProcessor = (function(self) {
   let internal = Utils.moduleInternal(self);
 
 
diff --git a/src/content/main/window-manager-toolbarbutton.js b/src/content/main/window-manager-toolbarbutton.js
index 2842be2..932557a 100644
--- a/src/content/main/window-manager-toolbarbutton.js
+++ b/src/content/main/window-manager-toolbarbutton.js
@@ -37,7 +37,7 @@ if (Info.isAustralis) {
 
 
 
-let rpWindowManager = (function(self) {
+rpWindowManager = (function(self) {
 
   let isAustralis = Info.isAustralis;
 
diff --git a/src/content/main/window-manager.jsm b/src/content/main/window-manager.jsm
index 03aca24..52e8c7c 100644
--- a/src/content/main/window-manager.jsm
+++ b/src/content/main/window-manager.jsm
@@ -26,7 +26,7 @@ let EXPORTED_SYMBOLS = ["rpWindowManager"];
 let globalScope = this;
 
 
-let rpWindowManager = (function(self) {
+var rpWindowManager = (function(self) {
 
   const Ci = Components.interfaces;
   const Cc = Components.classes;
diff --git a/src/content/main/window-manager.listener.js b/src/content/main/window-manager.listener.js
index ba6fb4d..afbbeeb 100644
--- a/src/content/main/window-manager.listener.js
+++ b/src/content/main/window-manager.listener.js
@@ -21,7 +21,7 @@
  * ***** END LICENSE BLOCK *****
  */
 
-let WindowListener = (function() {
+WindowListener = (function() {
   let self = {};
 
   let nextWinID = 0;

-- 
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