Remove tab.flash (use custom class instead)
This commit is contained in:
parent
309e7bccb2
commit
3746aab271
7 changed files with 5 additions and 59 deletions
16
src/index.ts
16
src/index.ts
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue