code: function(items) {
          this.data = items;
          this.items.empty();
          this.tabs.empty();
  
          for (var li, a, item, i = 0; item = items[i]; i++) {
              li = $('<li/>');
              li.appendTo(this.items);
  
              a = $('<a/>')
                  .attr('href', 'javascript:;')
                  .data('showcase-index', i);
  
              li = $('<li/>');
              li.appendTo(this.tabs).append(a);
          }
  
          if (items.length <= 1) {
              this.element.addClass('is-single');
          }
  
          this.fireEvent('load', [items]);
      }
docs: Build the list of items and tabs based on the generated data.
  Determine which elements to show and bind based on the data.
  
  @private
  @param {Array} items