Remove tab.flash (use custom class instead)

This commit is contained in:
Thomas Brouard 2022-05-25 15:18:35 +02:00
parent 309e7bccb2
commit 3746aab271
7 changed files with 5 additions and 59 deletions

View file

@ -534,22 +534,6 @@ class Tab extends EventTarget {
return this.show(false);
}
flash(flag = true) {
if (this.isClosed) return;
if (flag !== false) {
this.element.classList.add("flash");
this.emit("flash", this);
} else {
this.element.classList.remove("flash");
this.emit("unflash", this);
}
return this;
}
unflash() {
return this.flash(false);
}
hasClass(classname: string) {
return this.element.classList.contains(classname);
}