Skip to content

Commit b88d5ca

Browse files
authored
Merge pull request #38 from jonyeezs/bugfix/reading-non-exist-decorators
check for available decorators before disposing
2 parents fa8abfe + c8162f4 commit b88d5ca

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
@@ -55,7 +55,7 @@ class MinimapHighlightSelected
5555
@decorations.push decoration
5656

5757
markersDestroyed: =>
58-
@decorations.forEach (decoration) -> decoration.destroy()
58+
@decorations?.forEach (decoration) -> decoration.destroy()
5959
@decorations = []
6060

6161
deactivatePlugin: ->

0 commit comments

Comments
 (0)