Skip to content

Commit c8162f4

Browse files
author
JonathanYee
committed
check for available decorators before disposing
1 parent 60fcaf5 commit c8162f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/minimap-highlight-selected.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class MinimapHighlightSelected
5353
@decorations.push decoration
5454

5555
markersDestroyed: =>
56-
@decorations.forEach (decoration) -> decoration.destroy()
56+
@decorations?.forEach (decoration) -> decoration.destroy()
5757
@decorations = []
5858

5959
deactivatePlugin: ->

0 commit comments

Comments
 (0)