Skip to content

Commit

Permalink
💄 Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Dec 12, 2014
1 parent bc6761a commit c4d331e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/minimap.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ class Minimap
subs.add atom.config.observe 'minimap.charWidth', (@charWidth) =>
subs.add atom.config.observe 'minimap.interline', (@interline) =>

subs.add @textEditor.onDidChange (changes) =>
@emitChanges(changes)
subs.add @textEditor.onDidChange (changes) => @emitChanges(changes)

onDidChange: (callback) ->
@emitter.on 'did-change', callback
onDidChange: (callback) -> @emitter.on 'did-change', callback

getTextEditor: -> @textEditor

Expand Down Expand Up @@ -52,7 +50,6 @@ class Minimap

markBufferRange: (range) -> @textEditor.markBufferRange(range)

emitChanges: (changes) ->
@emitter.emit('did-change', changes)
emitChanges: (changes) -> @emitter.emit('did-change', changes)

stackChanges: (changes) -> @emitChanges(changes)

0 comments on commit c4d331e

Please sign in to comment.