Call uninit() in close()
This properly unregisters pref observers and flushes the reader's state.
This commit is contained in:
parent
0ee54b4a7e
commit
1740e5f1aa
1 changed files with 1 additions and 0 deletions
|
@ -1081,6 +1081,7 @@ class ReaderWindow extends ReaderInstance {
|
|||
};
|
||||
|
||||
close() {
|
||||
this.uninit();
|
||||
this._window.close();
|
||||
this._onClose();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue