From 7d062ec601b0c63cedd2ef55f6990c96ab57f483 Mon Sep 17 00:00:00 2001 From: abe33 Date: Fri, 5 Dec 2014 15:17:40 +0100 Subject: [PATCH] :bug: Fix broken view destruction with shadow DOM disabled Closes #166 --- lib/minimap-view.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/minimap-view.coffee b/lib/minimap-view.coffee index cc50f5bc..9a9a3249 100644 --- a/lib/minimap-view.coffee +++ b/lib/minimap-view.coffee @@ -365,7 +365,9 @@ class MinimapView extends View @css maxWidth: '' @editorView.style.paddingRight = '' @editorView.style.paddingLeft = '' - @getEditorViewRoot().querySelector('.vertical-scrollbar').style.right = '' + # When called in destroy with shadow DOM disabled, the vertical scrollbar + # is no longer reachable. + @getEditorViewRoot().querySelector('.vertical-scrollbar')?.style.right = '' # Internal: Updates the vertical scrolling of the minimap. #