 _ = require 'underscore-plus'
 
 SelectListComponent = React.createClass
-  maxItems: 10
 
   getInitialState: ->
     items: @props.items || []

    ol
      className: "list-group",
      input ref: 'input', key: 'autocomplete-plus-input'
      @state.items.slice(0, @maxItems).map ({word, label, renderLabelAsHtml, className}, index) =>
        itemClasses = []
        itemClasses.push className if className
        itemClasses.push 'selected' if index == @state.selectedIndex

          span labelAttributes, (label unless renderLabelAsHtml) if label?

class SelectListElement extends HTMLElement
  maxItems: 10

  createdCallback: ->
    @subscriptions = new CompositeDisposable
    @classList.add "popover-list"
