Change editor-selection-change event name to selection-change

This commit is contained in:
Kevin Sawicki
2012-10-01 15:40:39 -07:00
parent edfd61c702
commit b7f32036c2
3 changed files with 4 additions and 4 deletions

View File

@@ -1596,7 +1596,7 @@ describe "Editor", ->
expect(miniEditor.find('.line.cursor-line').length).toBe 0
fdescribe "gutter line highlighting", ->
describe "gutter line highlighting", ->
beforeEach ->
editor.attachToDom(heightInLines: 5.5)

View File

@@ -344,7 +344,7 @@ class Editor extends View
@gutter.addClass('drop-shadow')
@on 'cursor-move', => @highlightCursorLine()
@on 'editor-selection-change', => @highlightCursorLine()
@on 'selection-change', => @highlightCursorLine()
selectOnMousemoveUntilMouseup: ->
moveHandler = (e) => @selectToScreenPosition(@screenPositionFromMouseEvent(e))
@@ -419,7 +419,7 @@ class Editor extends View
@trigger 'editor-path-change'
@activeEditSession.getSelection().on 'change-screen-range', =>
@trigger 'editor-selection-change'
@trigger 'selection-change'
@trigger 'editor-path-change'
@renderWhenAttached()

View File

@@ -19,7 +19,7 @@ class Gutter extends View
editor = @editor()
highlightCursorLine = => @highlightCursorLine()
editor.on 'cursor-move', highlightCursorLine
editor.on 'editor-selection-change', highlightCursorLine
editor.on 'selection-change', highlightCursorLine
@calculateWidth()
editor: ->