%h1= values[:list_title]

%script{:type => 'text/javascript'}
  = File.read(File.join(@templatedir, "prototype-1.6.0.3.js"))
  = build_javascript_search_index(values[:methods] + values[:attributes])
  = File.read(File.join(@templatedir, "method_search.js"))
%form{:onsubmit => 'return performSearch()'}
  %input{:type => 'text', :id => 'search', :class => 'untouched', :value => 'Enter search terms...'}
%ol#search-results{ :class => 'methods', :style => 'display: none' }

%ol#index-entries{ :class => 'methods' }
  - values[:attributes].each do |entry|
    %li= link_to_method entry, [classfile(entry.parent), "method-#{entry.html_name}"].join('#')
  - values[:methods].each do |entry|
    %li= link_to_method entry, [classfile(entry.parent), entry.aref].join('#')

%h1= values[:list_title]

%script{:type => 'text/javascript'}
  = File.read(File.join(@templatedir, "prototype-1.6.0.3.js"))
  = build_javascript_search_index(values[:methods] + values[:attributes])
  = File.read(File.join(@templatedir, "method_search.js"))
%form{:onsubmit => 'return performSearch()'}
  %input{:type => 'text', :id => 'search', :class => 'untouched', :value => 'Enter search terms...'}
%ol#search-results{ :class => 'methods', :style => 'display: none' }

%ol#index-entries{ :class => 'methods' }
  - (values[:attributes] + values[:methods]).uniq.each do |entry|
    %li= link_to_method entry, [classfile(entry.parent), entry.aref].join('#')

Remove duplicate entries in the method index, fix attribute links
Remove duplicate entries in the method index, fix attribute links

I'm not sure why exactly there are duplicate entires, but this
seems to fix it.

The links for the attributes were incorrect, since hanna uses
attribute-* as the anchor for attributes.  Looks like both
respond to aref, so just use that.
