Topic: error with visual_effect and removeClassName

I have a link_to_function

<%=link_to_function "cancel" do |page|
  page['sub_menu'].visual_effect(:toggle_blind)
  page['event_summary'].removeClassName('fieldWithErrors')
end %>

That gives me an error
[code error]
Effect[klass] is not a constructor
visualEffect(div#sub_menu, "toggle_blind", undefined)effects.js (line 1095)
_methodized()prototype.js (line 245)
onclick(click clientX=0, clientY=0)calendar (line 2)
[Break on this error] new Effect[klass](element, options);
[/code]

Someone has an idea what's wrong?

Thanks
Stijn

Re: error with visual_effect and removeClassName

This works:

<%=link_to_function "cancel" do |page|
  page.visual_effect(:toggle_blind, 'sub_menu')
  page['event_summary'].removeClassName('fieldWithErrors')
end %>