Fix indent
This commit is contained in:
parent
a829981a35
commit
96ea62988a
@ -473,28 +473,28 @@ var TreeStyleTabWindowHelper = {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
b.__treestyletab__beginRemoveTab = b._beginRemoveTab;
|
b.__treestyletab__beginRemoveTab = b._beginRemoveTab;
|
||||||
b._beginRemoveTab = function(aTab, ...aArgs) {
|
b._beginRemoveTab = function(aTab, ...aArgs) {
|
||||||
var originalRemovingTabs = this._removingTabs;
|
var originalRemovingTabs = this._removingTabs;
|
||||||
var self = this;
|
var self = this;
|
||||||
if (this.treeStyleTab.shouldCloseLastTabSubtreeOf(aTab)) {
|
if (this.treeStyleTab.shouldCloseLastTabSubtreeOf(aTab)) {
|
||||||
this._removingTabs = new ExtendedImmutable(originalRemovingTabs, {
|
this._removingTabs = new ExtendedImmutable(originalRemovingTabs, {
|
||||||
get length() {
|
get length() {
|
||||||
// hack for https://dxr.mozilla.org/mozilla-central/rev/dbe4b47941c7b3d6298a0ead5e40dd828096c808/browser/base/content/tabbrowser.xml#2371
|
// hack for https://dxr.mozilla.org/mozilla-central/rev/dbe4b47941c7b3d6298a0ead5e40dd828096c808/browser/base/content/tabbrowser.xml#2371
|
||||||
if (aTab.closing) // do nothing after the removing process is started
|
if (aTab.closing) // do nothing after the removing process is started
|
||||||
return originalRemovingTabs.length;
|
return originalRemovingTabs.length;
|
||||||
|
|
||||||
if (window.skipNextCanClose) // the end section of the "close window with last tab" block
|
if (window.skipNextCanClose) // the end section of the "close window with last tab" block
|
||||||
return 0;
|
return 0;
|
||||||
else
|
else
|
||||||
return self.tabs.length - 1; // the beginning of the "close window with last tab" block
|
return self.tabs.length - 1; // the beginning of the "close window with last tab" block
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
var result = this.__treestyletab__beginRemoveTab(aTab, ...aArgs);
|
var result = this.__treestyletab__beginRemoveTab(aTab, ...aArgs);
|
||||||
this._removingTabs = originalRemovingTabs;
|
this._removingTabs = originalRemovingTabs;
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
b.__treestyletab__removeCurrentTab = b.removeCurrentTab;
|
b.__treestyletab__removeCurrentTab = b.removeCurrentTab;
|
||||||
b.removeCurrentTab = function(...aArgs) {
|
b.removeCurrentTab = function(...aArgs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user