Remove obsolete codes
This commit is contained in:
parent
9f3c964b11
commit
81d937fc91
@ -259,7 +259,7 @@ var TreeStyleTabWindowHelper = {
|
|||||||
return FeedHandler.__treestyletab__loadFeed.call(this, aHref, aEvent);
|
return FeedHandler.__treestyletab__loadFeed.call(this, aHref, aEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
if ('showNavToolbox' in FullScreen) { // for Firefox 40 or later
|
if ('showNavToolbox' in FullScreen) {
|
||||||
FullScreen.__treestyletab__showNavToolbox = FullScreen.showNavToolbox;
|
FullScreen.__treestyletab__showNavToolbox = FullScreen.showNavToolbox;
|
||||||
FullScreen.showNavToolbox = function(...aArgs) {
|
FullScreen.showNavToolbox = function(...aArgs) {
|
||||||
var beforeCollapsed = this._isChromeCollapsed;
|
var beforeCollapsed = this._isChromeCollapsed;
|
||||||
@ -278,16 +278,6 @@ var TreeStyleTabWindowHelper = {
|
|||||||
return retVal;
|
return retVal;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if ('mouseoverToggle' in FullScreen) { // for Firefox 39 or older
|
|
||||||
FullScreen.__treestyletab__mouseoverToggle = FullScreen.mouseoverToggle;
|
|
||||||
FullScreen.mouseoverToggle = function(...aArgs) {
|
|
||||||
var beforeCollapsed = this._isChromeCollapsed;
|
|
||||||
var retVal = FullScreen.__treestyletab__mouseoverToggle.call(this, ...aArgs);
|
|
||||||
if (beforeCollapsed !== this._isChromeCollapsed)
|
|
||||||
gBrowser.treeStyleTab.updateFloatingTabbar(gBrowser.treeStyleTab.kTABBAR_UPDATE_BY_FULLSCREEN);
|
|
||||||
return retVal;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
FullScreen.__treestyletab__toggle = FullScreen.toggle;
|
FullScreen.__treestyletab__toggle = FullScreen.toggle;
|
||||||
FullScreen.toggle = function(...aArgs) {
|
FullScreen.toggle = function(...aArgs) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user