[Pkg-mozext-commits] [greasemonkey] 22/41: Style clean up.
David Prévot
taffit at moszumanska.debian.org
Thu Apr 30 22:06:34 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 c19c0a5434f637819b31e3c3ff74651cd8e4b425
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Wed Apr 22 14:16:18 2015 -0400
Style clean up.
Missing semicolons and the like.
---
content/browser.js | 7 ++++---
content/menucommander.js | 12 ++++++------
modules/installPolicy.js | 1 -
modules/miscapis.js | 2 +-
modules/util/findMessageManager.js | 2 +-
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/content/browser.js b/content/browser.js
index 50132dc..96642f4 100644
--- a/content/browser.js
+++ b/content/browser.js
@@ -75,7 +75,7 @@ GM_BrowserUI.openInTab = function(aMessage) {
// TODO: obviously can't return a window here...
return /* tabBrowser.getBrowserForTab(newTab).contentWindow */ null;
-}
+};
/**
* The browser XUL has unloaded. Destroy references/watchers/listeners.
@@ -336,12 +336,13 @@ function GM_showPopup(aEvent) {
scriptsSepEl.collapsed = !(runsOnTop.length && runsFramed.length);
noScriptsEl.collapsed = !!(runsOnTop.length || runsFramed.length);
+ var point;
if (runsFramed.length) {
- var point = scriptsFramedEl;
+ point = scriptsFramedEl;
runsFramed.forEach(
function(script) { point = appendScriptAfter(script, point); });
}
- var point = scriptsTopEl;
+ point = scriptsTopEl;
runsOnTop.forEach(
function(script) { point = appendScriptAfter(script, point); });
diff --git a/content/menucommander.js b/content/menucommander.js
index 2d99e4a..d9a78d2 100644
--- a/content/menucommander.js
+++ b/content/menucommander.js
@@ -14,7 +14,7 @@ GM_MenuCommander.initialize = function() {
GM_MenuCommander.clearMenuCommands);
messageManager.addMessageListener('greasemonkey:toggle-menu-commands',
GM_MenuCommander.toggleMenuCommands);
-}
+};
GM_MenuCommander.menuCommandRegistered = function(aMessage) {
var windowId = aMessage.data.windowId;
@@ -26,14 +26,14 @@ GM_MenuCommander.menuCommandRegistered = function(aMessage) {
var command = aMessage.data;
command.browser = aMessage.target;
GM_MenuCommander.menuCommands[windowId].push(command);
-}
+};
GM_MenuCommander.clearMenuCommands = function(aMessage) {
var windowId = aMessage.data.windowId;
if (!windowId) return;
delete GM_MenuCommander.menuCommands[windowId];
-}
+};
GM_MenuCommander.toggleMenuCommands = function(aMessage) {
var frozen = aMessage.data.frozen;
@@ -42,14 +42,14 @@ GM_MenuCommander.toggleMenuCommands = function(aMessage) {
GM_MenuCommander.withAllMenuCommandsForWindowId(windowId, function(command) {
command.frozen = frozen;
});
-}
+};
GM_MenuCommander.commandClicked = function(aCommand) {
aCommand.browser.messageManager.sendAsyncMessage("greasemonkey:menu-command-clicked", {
index: aCommand.index,
windowId: aCommand.windowId
});
-}
+};
GM_MenuCommander.createMenuItem = function(command) {
var menuItem = document.createElement("menuitem");
@@ -68,7 +68,7 @@ GM_MenuCommander.createMenuItem = function(command) {
GM_MenuCommander.onPopupHiding = function(aMenuPopup) {
// Asynchronously. See #1632.
GM_util.timeout(function() { GM_util.emptyEl(aMenuPopup); }, 0);
-}
+};
GM_MenuCommander.onPopupShowing = function(aMenuPopup) {
// Add menu items for commands for the active window.
diff --git a/modules/installPolicy.js b/modules/installPolicy.js
index bb239cd..8ec7f26 100644
--- a/modules/installPolicy.js
+++ b/modules/installPolicy.js
@@ -115,7 +115,6 @@ var InstallPolicy = {
},
shouldProcess: function() {
- dump('>>> installPolicy shouldProcess() ...\n');
return Ci.nsIContentPolicy.ACCEPT;
},
diff --git a/modules/miscapis.js b/modules/miscapis.js
index 8e07851..c5a92d9 100644
--- a/modules/miscapis.js
+++ b/modules/miscapis.js
@@ -13,7 +13,7 @@ var EXPORTED_SYMBOLS = [
// \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ // \\ //
-function GM_Resources(script){
+function GM_Resources(script) {
this.script = script;
this.stringBundle = Components
.classes["@mozilla.org/intl/stringbundle;1"]
diff --git a/modules/util/findMessageManager.js b/modules/util/findMessageManager.js
index 7f17f56..78cadd9 100644
--- a/modules/util/findMessageManager.js
+++ b/modules/util/findMessageManager.js
@@ -21,4 +21,4 @@ function findMessageManager(aContext) {
return docShell
.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIContentFrameMessageManager);
-}
+};
--
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