mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Rename SelectionView.destroyed to .needsRemoval to match CursorView
This commit is contained in:
@@ -796,7 +796,7 @@ class Editor extends View
|
||||
@newSelections = []
|
||||
|
||||
for selectionView in @getSelectionViews()
|
||||
if selectionView.destroyed
|
||||
if selectionView.needsRemoval
|
||||
selectionView.remove()
|
||||
else
|
||||
selectionView.updateDisplay()
|
||||
|
||||
@@ -8,13 +8,13 @@ class SelectionView extends View
|
||||
@div class: 'selection'
|
||||
|
||||
regions: null
|
||||
destroyed: false
|
||||
needsRemoval: false
|
||||
|
||||
initialize: ({@editor, @selection} = {}) ->
|
||||
@regions = []
|
||||
@selection.on 'screen-range-changed', => @editor.requestDisplayUpdate()
|
||||
@selection.on 'destroyed', =>
|
||||
@destroyed = true
|
||||
@needsRemoval = true
|
||||
@editor.requestDisplayUpdate()
|
||||
|
||||
updateDisplay: ->
|
||||
|
||||
Reference in New Issue
Block a user