This addon should work when tabCenter is installed - issue #258

This commit is contained in:
baku 2017-02-24 08:17:30 +01:00
parent d10945e56f
commit 0a58786936

View file

@ -1101,14 +1101,16 @@ ContainerWindow.prototype = {
}, },
_configurePlusButtonMenuElement(buttonElement) { _configurePlusButtonMenuElement(buttonElement) {
// Let's remove the tooltip because it can go over our panel. if (buttonElement) {
this._tooltipCache.set(buttonElement, buttonElement.getAttribute("tooltip")); // Let's remove the tooltip because it can go over our panel.
buttonElement.setAttribute("tooltip", ""); this._tooltipCache.set(buttonElement, buttonElement.getAttribute("tooltip"));
this._disableElement(buttonElement); buttonElement.setAttribute("tooltip", "");
this._disableElement(buttonElement);
buttonElement.addEventListener("mouseover", this); buttonElement.addEventListener("mouseover", this);
buttonElement.addEventListener("click", this); buttonElement.addEventListener("click", this);
buttonElement.addEventListener("mouseout", this); buttonElement.addEventListener("mouseout", this);
}
}, },
_configurePlusButtonMenu() { _configurePlusButtonMenu() {
@ -1318,12 +1320,14 @@ ContainerWindow.prototype = {
}, },
_shutDownPlusButtonMenuElement(buttonElement) { _shutDownPlusButtonMenuElement(buttonElement) {
this._shutdownElement(buttonElement); if (buttonElement) {
buttonElement.setAttribute("tooltip", this._tooltipCache.get(buttonElement)); this._shutdownElement(buttonElement);
buttonElement.setAttribute("tooltip", this._tooltipCache.get(buttonElement));
buttonElement.removeEventListener("mouseover", this); buttonElement.removeEventListener("mouseover", this);
buttonElement.removeEventListener("click", this); buttonElement.removeEventListener("click", this);
buttonElement.removeEventListener("mouseout", this); buttonElement.removeEventListener("mouseout", this);
}
}, },
_shutdownPlusButtonMenu() { _shutdownPlusButtonMenu() {