commit
be552d4266
2 changed files with 3 additions and 1 deletions
1
index.js
1
index.js
|
@ -225,6 +225,7 @@ class Tab extends EventEmitter {
|
|||
}
|
||||
|
||||
close (force) {
|
||||
this.emit("closing", this);
|
||||
if (this.isClosed || (!this.closable && !force)) return;
|
||||
this.isClosed = true;
|
||||
let tabGroup = this.tabGroup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue