Merge pull request #260 from bakulf/tabCenter

This addon should work when tabCenter is installed - issue #258
This commit is contained in:
luke crouch 2017-02-24 08:11:32 -08:00 committed by GitHub
commit eee5555e8c

View file

@ -1101,6 +1101,7 @@ ContainerWindow.prototype = {
}, },
_configurePlusButtonMenuElement(buttonElement) { _configurePlusButtonMenuElement(buttonElement) {
if (buttonElement) {
// Let's remove the tooltip because it can go over our panel. // Let's remove the tooltip because it can go over our panel.
this._tooltipCache.set(buttonElement, buttonElement.getAttribute("tooltip")); this._tooltipCache.set(buttonElement, buttonElement.getAttribute("tooltip"));
buttonElement.setAttribute("tooltip", ""); buttonElement.setAttribute("tooltip", "");
@ -1109,6 +1110,7 @@ ContainerWindow.prototype = {
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) {
if (buttonElement) {
this._shutdownElement(buttonElement); this._shutdownElement(buttonElement);
buttonElement.setAttribute("tooltip", this._tooltipCache.get(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() {