mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add ReactEditorView::getModel
This commit is contained in:
@@ -758,3 +758,6 @@ EditorComponent = React.createClass
|
||||
top = clientY - scrollViewClientRect.top + editor.getScrollTop()
|
||||
left = clientX - scrollViewClientRect.left + editor.getScrollLeft()
|
||||
{top, left}
|
||||
|
||||
getModel: ->
|
||||
@props.editor
|
||||
|
||||
@@ -99,4 +99,7 @@ class ReactEditorView extends View
|
||||
super
|
||||
@component.show()
|
||||
|
||||
getModel: ->
|
||||
@component.getModel()
|
||||
|
||||
requestDisplayUpdate: -> # No-op shim for find-and-replace
|
||||
|
||||
Reference in New Issue
Block a user