[Pkg-mozext-commits] [requestpolicy] 216/257: [ref] revert using shorthand property names

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:20:15 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 069f42cfab1a98e090f60be5d13a782caabd3b0f
Author: Martin Kimmerle <dev at 256k.de>
Date:   Tue Dec 15 17:17:42 2015 +0100

    [ref] revert using shorthand property names
---
 src/content/lib/environment.jsm       | 4 +++-
 src/content/lib/policy-manager.jsm    | 4 +++-
 src/content/lib/request-processor.jsm | 8 ++++++--
 src/content/main/window-manager.jsm   | 4 +++-
 src/content/settings/common.js        | 8 +++++++-
 src/content/ui/frame.js               | 7 ++++++-
 6 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/src/content/lib/environment.jsm b/src/content/lib/environment.jsm
index 4597e7a..57b0487 100644
--- a/src/content/lib/environment.jsm
+++ b/src/content/lib/environment.jsm
@@ -557,7 +557,9 @@ var Environment = (function() {
 //==============================================================================
 
 var ProcessEnvironment = (function() {
-  let scope = {Environment};
+  let scope = {
+    Environment: Environment
+  };
   Services.scriptloader.loadSubScript(
       "chrome://rpcontinued/content/lib/environment.process.js", scope);
   return scope.ProcessEnvironment;
diff --git a/src/content/lib/policy-manager.jsm b/src/content/lib/policy-manager.jsm
index cff8143..4ecf937 100644
--- a/src/content/lib/policy-manager.jsm
+++ b/src/content/lib/policy-manager.jsm
@@ -348,7 +348,9 @@ var PolicyManager = (function() {
 }());
 
 PolicyManager = (function() {
-  let scope = {PolicyManager};
+  let scope = {
+    PolicyManager: PolicyManager
+  };
   Services.scriptloader.loadSubScript(
       "chrome://rpcontinued/content/lib/policy-manager.alias-functions.js",
       scope);
diff --git a/src/content/lib/request-processor.jsm b/src/content/lib/request-processor.jsm
index 0f6aa29..4f221b0 100644
--- a/src/content/lib/request-processor.jsm
+++ b/src/content/lib/request-processor.jsm
@@ -1096,14 +1096,18 @@ var RequestProcessor = (function() {
 }());
 
 RequestProcessor = (function() {
-  let scope = {RequestProcessor};
+  let scope = {
+    RequestProcessor: RequestProcessor
+  };
   Services.scriptloader.loadSubScript(
       "chrome://rpcontinued/content/lib/request-processor.redirects.js", scope);
   return scope.RequestProcessor;
 }());
 
 RequestProcessor = (function() {
-  let scope = {RequestProcessor};
+  let scope = {
+    RequestProcessor: RequestProcessor
+  };
   Services.scriptloader.loadSubScript(
       "chrome://rpcontinued/content/lib/request-processor.compat.js", scope);
   return scope.RequestProcessor;
diff --git a/src/content/main/window-manager.jsm b/src/content/main/window-manager.jsm
index f8aea29..608a6ed 100644
--- a/src/content/main/window-manager.jsm
+++ b/src/content/main/window-manager.jsm
@@ -219,7 +219,9 @@ var rpWindowManager = (function() {
 }());
 
 rpWindowManager = (function() {
-  let scope = {rpWindowManager};
+  let scope = {
+    rpWindowManager: rpWindowManager
+  };
   Services.scriptloader.loadSubScript(
       "chrome://rpcontinued/content/main/window-manager-toolbarbutton.js",
       scope);
diff --git a/src/content/settings/common.js b/src/content/settings/common.js
index 30e0a78..21662af 100644
--- a/src/content/settings/common.js
+++ b/src/content/settings/common.js
@@ -139,5 +139,11 @@ var {common, WinEnv, elManager, $id, $str} = (function() {
     common.localize(COMMON_STRINGS);
   });
 
-  return {common, WinEnv, elManager, $id, $str};
+  return {
+    common: common,
+    WinEnv: WinEnv,
+    elManager: elManager,
+    $id: $id,
+    $str: $str
+  };
 }());
diff --git a/src/content/ui/frame.js b/src/content/ui/frame.js
index 9d21901..2d3856a 100644
--- a/src/content/ui/frame.js
+++ b/src/content/ui/frame.js
@@ -48,7 +48,12 @@
 
   // Create a scope for the sub-scripts, which also can
   // be removed easily when the framescript gets unloaded.
-  var framescriptScope = {mm, framescriptEnv, mlManager, overlayComm};
+  var framescriptScope = {
+    mm: mm,
+    framescriptEnv: framescriptEnv,
+    mlManager: mlManager,
+    overlayComm: overlayComm
+  };
 
   function loadSubScripts() {
     Services.scriptloader.loadSubScript(

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