Add more shims to ReactEditorView

This commit is contained in:
Nathan Sobo
2014-04-18 09:11:03 -06:00
parent 2532527a6a
commit e9f2a536ed

View File

@@ -37,6 +37,12 @@ class ReactEditorView extends View
pixelPositionForBufferPosition: (bufferPosition) ->
@editor.pixelPositionForBufferPosition(bufferPosition)
pixelPositionForScreenPosition: (screenPosition) ->
@editor.pixelPositionForScreenPosition(screenPosition)
appendToLinesView: (view) ->
@find('.scroll-view-content').prepend(view)
beforeRemove: ->
React.unmountComponentAtNode(@element)
@attached = false