mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Add Editor.getModel
This commit is contained in:
committed by
probablycorey
parent
517c5022d3
commit
75229808de
@@ -483,6 +483,9 @@ class Editor extends View
|
||||
index = @pushEditSession(editSession) if index == -1
|
||||
@setActiveEditSessionIndex(index)
|
||||
|
||||
getModel: ->
|
||||
@activeEditSession
|
||||
|
||||
setModel: (editSession) ->
|
||||
@edit(editSession)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user