     for i in [ 0..anagrams.length - 1 ]
       li = handleAnagram i
       results.append li
-      applyFilters li
+      li.hide() if shouldHide li[0]
   else
     form.find('input').notify 'No anagrams found!'
 # create a list item and its associated click handler

      body.css 'cursor', 'progress'
  $('#clear').click ->
    filters.splice 0, filters.length
    filterTable.find('tr').remove()
    filterTable.hide()
    applyAllFilters()
  $('#filter').click ->

  h = filterTable.find 'tr:has(th)'
  setTimeout(# force this to be rendered separately
    ->
      lis = $ '#results li'
      lis.show()
      hideable = $.grep lis, (e,i) -> shouldHide e
      $(hideable).hide()
      h.find('span').text hideable.length
      h.show()
      body.css 'cursor', 'default'
    0
  )
# checks whether existing filters apply to this item
shouldHide = (li) ->
  t = li.innerHTML
  for f in filters
    if f.x.test t
      if !f.m
        return true
    else if f.m
      return true
  return false
# friend code
# add a friend to the friend list in alphabetical order
addRelClass = (span, data) ->
