src/Tab.js
function Tab (options) {
  this.options = options || {}
  this.master = null

  this.header = document.createElement('li')
  this.header.onclick = function () {
    this.toggle()
  }.bind(this)

  this.content = document.createElement('div')
  this.content.className = 'tabs-section'
}
function Tab (options) {
  this.options = options || {}
  this.master = null

  this.header = document.createElement('li')
  this.header.onclick = function () {
    this.toggle()
  }.bind(this)

  this.content = document.createElement('div')
  this.content.className = 'tabs-section'
}
function Tab ( options ) { this . options = options || { } this . master = null this . header = document . createElement ( 'li' ) this . header . onclick = function ( ) { this . toggle ( ) } . bind ( this ) this . content = document . createElement ( 'div' ) this . content . className = 'tabs-section' }
add a new tab pane to the tabs
@param {Object} options
@param {String} options.id ID of the tab
@param {Number} [options.weight=0] Order tabs by weight. Tabs with lower weight first.
@property {DOMNode} content
@property {DOMNode} header
@property {Tabs} master
add a new tab pane to the tabs