       panel = self.el.find(selector)
       panel.addClass('tab-content')
       panel.hide()
-      self.el.trigger('addtab', panel)
+      self.el.trigger('addtab', [panel])
 
   hidePanels: -> @el.find('.tab-content').hide()
 

    a.click (e) =>
      @hidePanels()
      panel.show()
      return false

    cb panel if cb

    a.appendTo(li)
    li.appendTo(ul)

    panel = $('<div/>')
    panel.appendTo( @el ).addClass('tab-content')
    @tabPanels[ tabId ] = { handle: li, panel: panel, a: a }
