 
   createEditor: ->
 
-    {file, content} = @getOptions()
+    { file, content } = @getOptions()
 
     unless file instanceof FSFile
       throw new TypeError 'File must be an instance of FSFile'

      @save ignoreActiveLineOnTrim: yes


  save: (options = {}) ->

    @getAce().requestSave options


  getAce: ->

    return @aceView.ace


  getEditor: ->

    return @getAce().editor


  getEditorSession: ->

    return @getEditor().getSession()


  getValue: ->

    return  @getEditorSession().getValue()


  goToLine: (lineNumber) ->

    @getAce().gotoLine lineNumber


  setFocus: (state) ->

  destroy: ->

    @file.off [ 'fs.save.failed', 'fs.saveAs.failed' ], @bound 'handleSaveFailed'

    super


