Merge pull request #260 from bakulf/tabCenter
This addon should work when tabCenter is installed - issue #258
This commit is contained in:
commit
eee5555e8c
1 changed files with 16 additions and 12 deletions
28
index.js
28
index.js
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue