   copyPaneAxis: (paneAxis) ->
     {container, orientation} = paneAxis
     new paneAxis.constructor({container, orientation, children: paneAxis.getChildren()})
-
-    # clone = atom.deserializers.deserialize(paneAxis.serialize())
-    # container = paneAxis.getContainer()
-    # clone.setContainer(container)
-    # clone.children.forEach (child) ->
-    #   child.setContainer(container)
-    #   child.setParent(clone)
 
   # [FIXME]
   # Occasionally blank pane, remain on original pane position.

      while children.length
        parent.insertChildAfter(firstChild, children.shift())
      axis.destroy()

  # reparent
  # if paneInfo.root.getOrientation() isnt orientation
  #   for child in root.children when (child instanceof @PaneAxis) and (child.getOrientation() is orientation)
  #     console.log "reParent!!"
  #     children  = child.getChildren()
  #     child.reparentLastChild()
  #     children.shift()
  #     while children.length
  #       root.addChild(children.shift())
  #     child.destroy()

    @disposables.add @getActivePane().onDidChangeActive ->
      workspaceElement.classList.remove('paner-maximize')

  toggleDebug: ->
    atom.config.toggle('paner.debug')
    state = atom.config.get('paner.debug') and "enabled" or "disabled"
    console.log "paner: debug #{state}"

  # Like Vim's `ctrl-w x`, select pane within current PaneAxis.
  #
