     if pane
       newPane = @createPane pane
       @container.addSubView newPane
-      @getDelegate().emit "AllPanesAddedToPanel", @, [newPane]
+      @getDelegate().emit "AllPanesAddedToPanel", this, [newPane]
     else if layout
       @layoutContainer = new WorkspaceLayout
-        delegate      : @
-        layoutOptions : layout
+        delegate       : this
+        layoutOptions  : layout
 
       @container.addSubView @layoutContainer
     else


  viewAppended: ->
    super
    @getDelegate().emit "NewPanelAdded", @

  pistachio: ->
    """


  getPaneClass: (paneOptions) ->
    paneType             = paneOptions.type
    paneOptions.delegate = this

    if paneType is "custom"
      PaneClass = paneOptions.paneClass
