Skip to content

Commit

Permalink
🐛 Fix error raised when opening Atom with no buffer opened
Browse files Browse the repository at this point in the history
Fixes #276
  • Loading branch information
abe33 committed Feb 18, 2015
1 parent bdc619a commit c186e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class Main
# Returns a `Disposable`.
observeMinimaps: (iterator) ->
return unless iterator?
@editorsMinimaps.forEach (minimap) -> iterator(minimap)
@editorsMinimaps?.forEach (minimap) -> iterator(minimap)
createdCallback = (minimap) -> iterator(minimap)
disposable = @onDidCreateMinimap(createdCallback)
disposable.off = ->
Expand Down

0 comments on commit c186e61

Please sign in to comment.