   softTabs: true
   tabText: '  '
 
-  initialize: (editorState={}) ->
+  initialize: (editorState) ->
     requireStylesheet 'editor.css'
     requireStylesheet 'theme/twilight.css'
 

    @scroller.scrollTop(editorState.scrollTop ? 0)
    @scroller.scrollLeft(editorState.scrollLeft ? 0)

  getEditorState: ->
    buffer: @buffer
    cursorScreenPosition: @getCursorScreenPosition().copy()

    @autoIndent = true
    @buildCursorAndSelection()
    @handleEvents()
    @editorStatesByBufferId = {}
    @setEditorState(editorState)

  bindKeys: ->
    @on 'save', => @save()
