Remove reader pointerdown listener on close
Avoids a memory leak.
This commit is contained in:
parent
2624770cea
commit
57a1214eaa
1 changed files with 1 additions and 0 deletions
|
@ -1025,6 +1025,7 @@ class ReaderTab extends ReaderInstance {
|
|||
|
||||
close() {
|
||||
this._window.removeEventListener('DOMContentLoaded', this._handleLoad);
|
||||
this._window.removeEventListener('pointerdown', this._handlePointerDown);
|
||||
this._window.removeEventListener('pointerup', this._handlePointerUp);
|
||||
if (this.tabID) {
|
||||
this._window.Zotero_Tabs.close(this.tabID);
|
||||
|
|
Loading…
Reference in a new issue