Adding in CSS and HTML linting. Fixes 72

This commit is contained in:
Jonathan Kingston
2017-01-25 16:52:27 +00:00
parent 1e6b684915
commit 71001050b4
7 changed files with 231 additions and 105 deletions
+7 -6
View File
@@ -652,21 +652,22 @@ ContainerWindow.prototype = {
const mouseoutHandle = (e) => {
let el = e.target;
do {
if (el == this._panelElement ||
el == button ||
el == overflowButton) {
while(el) {
if (el === this._panelElement ||
el === button ||
el === overflowButton) {
this._createTimeout();
return;
}
} while(el = el.parentElement);
el = el.parentElement;
}
};
[button, overflowButton].forEach((buttonElement) => {
buttonElement.addEventListener("mouseover", () => {
showPopup(buttonElement);
});
buttonElement.addEventListener("click", _ => {
buttonElement.addEventListener("click", () => {
this.hidePanel();
});
buttonElement.addEventListener("mouseout", mouseoutHandle);