prevent closing more than once
This commit is contained in:
parent
1fa14a99e9
commit
28bed56b5a
1 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,9 @@ export class Timeline {
|
||||||
|
|
||||||
/** @public */
|
/** @public */
|
||||||
close() {
|
close() {
|
||||||
this._closeCallback();
|
if (this._closeCallback) {
|
||||||
|
this._closeCallback();
|
||||||
|
this._closeCallback = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue