mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Add reverse compatability for Editor creation
This commit is contained in:
@@ -86,7 +86,8 @@ class EditorView extends View
|
||||
if editorOrOptions instanceof Editor
|
||||
editor = editorOrOptions
|
||||
else
|
||||
{editor, @mini} = editorOrOptions ? {}
|
||||
{editor, editSession, @mini} = editorOrOptions ? {}
|
||||
editor ?= editSession # TODO: Remove this line after packages have updated their api to use Editor and EditorView
|
||||
|
||||
@id = EditorView.nextEditorId++
|
||||
@lineCache = []
|
||||
|
||||
Reference in New Issue
Block a user