Skip to content

Commit

Permalink
fix: destroy quickSettingsElement
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 16, 2021
1 parent 4fca672 commit 0eace20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/minimap-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,11 @@ class MinimapElement {
* Destroys this MinimapElement
*/
destroy () {
this.subscriptions.dispose()
this.DecorationManagement.destroy()
if (this.quickSettingsElement) {
this.quickSettingsElement.destroy()
}
this.subscriptions.dispose()
this.detach()
if (this.minimap) {
this.minimap.minimapElement = null
Expand Down

0 comments on commit 0eace20

Please sign in to comment.