[Pkg-mozext-commits] [greasemonkey] 53/62: Style cleanup: whitespace, semicolons.

David Prévot taffit at moszumanska.debian.org
Sun Sep 13 22:10:25 UTC 2015


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit df0a4699337276af84d0942cf60dfcd41964e098
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Mon Aug 31 14:22:34 2015 -0400

    Style cleanup: whitespace, semicolons.
---
 content/browser.js | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/content/browser.js b/content/browser.js
index eeb80ac..72ddab0 100644
--- a/content/browser.js
+++ b/content/browser.js
@@ -267,7 +267,6 @@ function GM_popupClicked(aEvent) {
   closeMenus(aEvent.target);
 }
 
-
 /**
  * When a menu pops up, fill its contents with the list of scripts.
  */
@@ -275,23 +274,22 @@ function GM_showPopup(aEvent) {
   // Make sure this event was triggered by opening the actual monkey menu,
   // not one of its submenus.
   if (aEvent.currentTarget != aEvent.target) return;
-  
-  var mm = getBrowser().mCurrentBrowser.frameLoader.messageManager; 
-  
-  var callback = function(message) {
+
+  var mm = getBrowser().mCurrentBrowser.frameLoader.messageManager;
+
+  var callback = null;
+  callback = function(message) {
     mm.removeMessageListener("greasemonkey:frame-urls", callback);
-    
+
     var urls = message.data.urls;
     asyncShowPopup(aEvent, urls);
-  }
-  
-  mm.addMessageListener("greasemonkey:frame-urls", callback)
+  };
+
+  mm.addMessageListener("greasemonkey:frame-urls", callback);
   mm.sendAsyncMessage("greasemonkey:frame-urls", {});
-  
 }
 
 function asyncShowPopup(aEvent, urls) {
-  
   function uniq(a) {
     var seen = {}, list = [], item;
     for (var i = 0; i < a.length; i++) {
@@ -323,8 +321,6 @@ function asyncShowPopup(aEvent, urls) {
     return mi;
   }
 
-
-
   var popup = aEvent.target;
   var scriptsFramedEl = popup.getElementsByClassName("scripts-framed-point")[0];
   var scriptsTopEl = popup.getElementsByClassName("scripts-top-point")[0];

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



More information about the Pkg-mozext-commits mailing list