More CompositeCursor 💄. Preparing to axe it

This commit is contained in:
Nathan Sobo
2012-06-10 21:43:24 -06:00
parent 80cd63227a
commit e0aa49cb53
2 changed files with 3 additions and 7 deletions

View File

@@ -19,15 +19,11 @@ class CompositeCursor
@editor.renderedLines.append(cursor)
cursor
viewForCursor: (cursor) ->
for view in @getCursors()
return view if view.cursor == cursor
removeCursorView: (cursorView) ->
_.remove(@cursors, cursorView)
removeAllCursorViews: ->
cursor.remove() for cursor in @getCursorViews()
removeCursor: (cursor) ->
_.remove(@cursors, cursor)
updateAppearance: ->
cursor.updateAppearance() for cursor in @cursors

View File

@@ -28,7 +28,7 @@ class CursorView extends View
@editor.syncCursorAnimations()
remove: ->
@editor.compositeCursor.removeCursor(this)
@editor.compositeCursor.removeCursorView(this)
@cursor.off()
super