Don't need to assign retainSelection on the SelectionView anymore

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-11-29 17:46:58 -07:00
parent 702b8047e4
commit 7eb1f14f05

View File

@@ -333,11 +333,9 @@ class Selection
modifySelection: (fn) ->
@retainSelection = true
@view?.retainSelection = true
@placeAnchor() unless @anchor
fn()
@retainSelection = false
@view?.retainSelection = false
placeAnchor: ->
@anchor = @editSession.addAnchor(strong: true)