Rename 'selection-change' to 'selection:changed'

This commit is contained in:
Nathan Sobo
2013-01-04 13:48:49 -07:00
parent 96aaefdd7d
commit 1762ae2744
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ class Gutter extends View
editor = @editor()
highlightLines = => @highlightLines()
editor.on 'cursor:moved', highlightLines
editor.on 'selection-change', highlightLines
editor.on 'selection:changed', highlightLines
@on 'click', '.line-number', (e) =>
row = parseInt($(e.target).text()) - 1
position = new Point(row, 0)

View File

@@ -22,7 +22,7 @@ class SelectionView extends View
@clearRegions()
range = @getScreenRange()
@trigger 'selection-change'
@trigger 'selection:changed'
@editor.highlightFoldsContainingBufferRange(@getBufferRange())
return if range.isEmpty()