 
   addNewTab: (file) ->
     file = file or FSHelper.createFileFromPath 'localfile:/Untitled.txt'
-    aceView = new AceView {}, file
+    aceView = new AceView delegate: @, file
     aceView.on 'KDObjectWillBeDestroyed', => @removeOpenDocument aceView
     @aceViews[file.path] = aceView
     @setViewListeners aceView

      {{> @tabHandleContainer}}
      {{> @tabView}}
    """


    super options, data

    @aceViews            = {}
    @timestamp           = Date.now()
    @appManager          = KD.getSingleton "appManager"
    @tabHandleContainer  = new ApplicationTabHandleHolder delegate: @
    @tabView             = new AceApplicationTabView
      delegate           : @
      tabHandleContainer : @tabHandleContainer
      saveSession        : yes
      sessionName        : "AceTabHistory"

    @on "SessionDataCreated", (@sessionData) =>

