Kill EditorView::isAlive and just tunnel to the model where it was used

This commit is contained in:
Nathan Sobo
2014-01-10 18:28:01 -07:00
parent 263ab3b4a6
commit 8b0b997db6
2 changed files with 1 additions and 3 deletions

View File

@@ -217,8 +217,6 @@ class EditorView extends View
do (name, method) =>
@command name, (e) => method.call(this, e); false
isAlive: -> @editor?.isAlive()
# {Delegates to: Editor.getCursor}
getCursor: -> @editor.getCursor()

View File

@@ -230,7 +230,7 @@ class Gutter extends View
@highlightedLineNumbers.push(highlightedLineNumber)
highlightLines: ->
return unless @getEditorView().isAlive()
return unless @getEditorView().editor?.isAlive()
if @getEditorView().getSelection().isEmpty()
row = @getEditorView().getCursorScreenPosition().row