Skip to content

Commit

Permalink
Change the signature of the minimap creation callback argument
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Jan 5, 2015
1 parent e57d570 commit f85de70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/main-v4.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class V4Main

observeMinimaps: (iterator) ->
return unless iterator?
iterator({view: minimap}) for id,minimap of @editorsMinimaps
iterator(minimap) for id,minimap of @editorsMinimaps
createdCallback = (minimap) -> iterator(minimap)
disposable = @onDidCreateMinimap(createdCallback)
disposable.off = ->
Expand All @@ -50,6 +50,6 @@ class V4Main
editorElement = atom.views.getView(textEditor)
minimapElement = atom.views.getView(minimap)

@emitter.emit('did-create-minimap')
@emitter.emit('did-create-minimap', minimap)

minimapElement.attach()
2 changes: 1 addition & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Main
description: "The opacity used to render the line's text in the minimap."
v4Preview:
type: 'boolean'
default: false
default: true
description: "Require Atom restart. Plugins will be disabled."

# Internal: The activation state of the minimap package.
Expand Down

0 comments on commit f85de70

Please sign in to comment.