Only pass event to the editor

This commit is contained in:
Ben Ogle
2014-09-22 15:50:40 -07:00
parent 5083c18c84
commit e5c03e139a
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class Cursor extends Model
@emit 'moved', movedEvent
@emitter.emit 'did-change-position'
@editor.cursorMoved(this, movedEvent)
@editor.cursorMoved(movedEvent)
@marker.onDidDestroy =>
@destroyed = true
@editor.removeCursor(this)

View File

@@ -1604,7 +1604,7 @@ class Editor extends Model
fn(cursor) for cursor in @getCursors()
@mergeCursors()
cursorMoved: (cursor, event) ->
cursorMoved: (event) ->
@emit 'cursor-moved', event
@emitter.emit 'did-change-cursor-position', event