Add reverse compatability for Editor creation

This commit is contained in:
probablycorey
2013-11-19 16:22:29 -08:00
parent 34cdb23d71
commit c33bd34996

View File

@@ -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 = []