mirror of
https://github.com/zotero/zotero.git
synced 2026-09-17 23:51:18 +00:00
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…
Add table
Reference in a new issue