code: function add(text) {
      var item = document.createElement('li')
      latestLine = null
      latestLineText = ''
  
      items.push(item)
      list.appendChild(item)
      item.innerHTML = text
      item.addEventListener('mouseover', mouseover, false)
      item.addEventListener('click', click, false)
  
      return menu.once('close', function() {
        item.removeEventListener('mouseover', mouseover, false)
        item.removeEventListener('click', click, false)
      })
  
      function mouseover(e) {
        if (curr !== null) {
          disable(items[curr])
          curr = null
        }
  
        enable(item)
        curr = items.indexOf(item)
      }
  
      function click() {
        curr = items.indexOf(item)
        select()
      }
    }
docs: behavior