[Pale-Moon] Remove excess whitespace.

This commit is contained in:
athenian200 2020-02-06 09:46:16 -06:00 • committed by Roy Tam
commit b6b33a6b2a
73 changed files with 1883 additions and 1883 deletions

View file

@ -65,13 +65,13 @@ function _handleEvent(aEvent) {
// Methods that impact a browser. Put into single object for organization.
var BrowserHelper = {
onOpen: function (aBrowser) {
onOpen: function(aBrowser) {
// If the tab is in the focused window, leave priority as it is
if (aBrowser.ownerDocument.defaultView != _lastFocusedWindow)
this.decreasePriority(aBrowser);
},
onSelect: function (aBrowser) {
onSelect: function(aBrowser) {
let windowEntry = WindowHelper.getEntry(aBrowser.ownerDocument.defaultView);
if (windowEntry.lastSelectedBrowser)
this.decreasePriority(windowEntry.lastSelectedBrowser);
@ -80,11 +80,11 @@ var BrowserHelper = {
windowEntry.lastSelectedBrowser = aBrowser;
},
increasePriority: function (aBrowser) {
increasePriority: function(aBrowser) {
aBrowser.adjustPriority(PRIORITY_DELTA);
},
decreasePriority: function (aBrowser) {
decreasePriority: function(aBrowser) {
aBrowser.adjustPriority(PRIORITY_DELTA * -1);
}
};
@ -92,7 +92,7 @@ var BrowserHelper = {
// Methods that impact a window. Put into single object for organization.
var WindowHelper = {
addWindow: function (aWindow) {
addWindow: function(aWindow) {
// Build internal data object
_windows.push({ window: aWindow, lastSelectedBrowser: null });
@ -115,7 +115,7 @@ var WindowHelper = {
BrowserHelper.onSelect(aWindow.gBrowser.selectedBrowser);
},
removeWindow: function (aWindow) {
removeWindow: function(aWindow) {
if (aWindow == _lastFocusedWindow)
_lastFocusedWindow = null;
@ -131,7 +131,7 @@ var WindowHelper = {
});
},
onActivate: function (aWindow, aHasFocus) {
onActivate: function(aWindow, aHasFocus) {
// If this window was the last focused window, we don't need to do anything
if (aWindow == _lastFocusedWindow)
return;
@ -143,7 +143,7 @@ var WindowHelper = {
this.increasePriority(aWindow);
},
handleFocusedWindow: function (aWindow) {
handleFocusedWindow: function(aWindow) {
// If we have a last focused window, we need to deprioritize it first
if (_lastFocusedWindow)
this.decreasePriority(_lastFocusedWindow);
@ -153,23 +153,23 @@ var WindowHelper = {
},
// Auxiliary methods
increasePriority: function (aWindow) {
increasePriority: function(aWindow) {
aWindow.gBrowser.browsers.forEach(function(aBrowser) {
BrowserHelper.increasePriority(aBrowser);
});
},
decreasePriority: function (aWindow) {
decreasePriority: function(aWindow) {
aWindow.gBrowser.browsers.forEach(function(aBrowser) {
BrowserHelper.decreasePriority(aBrowser);
});
},
getEntry: function (aWindow) {
getEntry: function(aWindow) {
return _windows[this.getEntryIndex(aWindow)];
},
getEntryIndex: function (aWindow) {
getEntryIndex: function(aWindow) {
// Assumes that every object has a unique window & it's in the array
for (let i = 0; i < _windows.length; i++)
if (_windows[i].window == aWindow)