Deprecate EditorView::setSoftWrap

This commit is contained in:
Ben Ogle
2014-09-04 15:29:54 -07:00
parent dc21e8707f
commit dba1e22ded

View File

@@ -306,10 +306,8 @@ class EditorView extends View
setShowIndentGuide: (showIndentGuide) ->
@component.setShowIndentGuide(showIndentGuide)
# Public: Enables/disables soft wrap on the editor.
#
# * `softWrap` A {Boolean} which, if `true`, enables soft wrap
setSoftWrap: (softWrap) ->
deprecate 'Use Editor::setSoftWrap instead. You can get the editor via editorView.getModel()'
@editor.setSoftWrap(softWrap)
# Public: Set whether invisible characters are shown.