   closeUntitledFileIfNotChanged: ->
     for pane in @tabView.panes when pane
       if pane.data instanceof FSFile and pane.data.path is @getDummyFilePath()
-        if pane.subViews.first.getValue() is ''
+        if pane.view.getValue() is ''
           @tabView.removePane pane
 
   showShortcutsOnce: ->

    appManager = KD.getSingleton 'appManager'

    unless paneType
      subView  = @tabView.getActivePane().getSubViews().first
      paneType = subView.getOptions().paneType  if subView

    unless data

  removeOpenDocument: ->
    # TODO: This method is legacy, should be reimplemented in ace bundle.

  getActivePaneView: ->
    return @tabView.getActivePane().view

  focusTab: ->
    pane = @getActivePaneView()
    return unless pane

    KD.utils.defer ->
