Make Cursor::updateVisibility private

This commit is contained in:
Max Brunsfeld 2015-01-09 15:41:08 -08:00
parent d26c19a0ec
commit dde5e6123c

View File

@ -594,10 +594,6 @@ class Cursor extends Model
Section: Visibility
###
# Public: If the marker range is empty, the cursor is marked as being visible.
updateVisibility: ->
@setVisible(@marker.getBufferRange().isEmpty())
# Public: Sets whether the cursor is visible.
setVisible: (visible) ->
if @visible != visible
@ -609,6 +605,9 @@ class Cursor extends Model
# Public: Returns the visibility of the cursor.
isVisible: -> @visible
updateVisibility: ->
@setVisible(@marker.getBufferRange().isEmpty())
###
Section: Comparing to another cursor
###