docs: function (element, options) {
      this.$element       = $(element)
      this.$itemsWrapper  = this.$element.find('.carousel-inner')
      this.$items         = this.$element.find('.item')
      this.$indicators    = this.$element.find('.carousel-indicators')
      this.pane_width     =
      this.pane_count     =
      this.current_pane   = 0
      this.onGesture      = false
      this.options        = options
  
      this._setPaneDimensions()
      // disable carousel if there is only one
      // or no item. (fixes # 6)
      if (this.$items.length <= 1) return this.disable()
  
      this._regTouchGestures()
  
      $(window).on('orientationchange resize', $.proxy(this._setPaneDimensions, this) );
    }