mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898040 - Followup to only remove the event listeners if they were added. r=MattN
This commit is contained in:
parent
d0bc0cba9d
commit
95b937964b
@ -56,6 +56,10 @@ const PanelUI = {
|
||||
},
|
||||
|
||||
uninit: function() {
|
||||
if (!this._eventListenersAdded) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let event of this.kEvents) {
|
||||
this.panel.removeEventListener(event, this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user