 
   getInitialState: ->
     activeKey: @props.activeKey
+    children: @props.children
 
   getDefaultProps: ->
     ptClass: "tab-group"

    renderPane = (child, index) =>
      @renderPane child, index

    childTabs = @props.children.map renderTab if @props.children
    childPane = @props.children.map renderPane if @props.children

    <div>
      <div className={className}>
        {childTabs}
      </div>
      <div ref="contents">

    catch
      null

  sortableOptions:
    ref: "tabs"
    model: "children"

  render: ->
    classes = @getPtClassSet()
    className = classNames @props.className, classes
