Event.observe(window, "resize", resizeContent);
Should suffice to manage the event, you don''t need to wrap it in a new
function.
That done,
Event.stopObserving(window, "resize", resizeContent);
should work.
IIRC when you call stopObserving you must supply the exact same
parameters you passed to the observe call (so you have to pass the
same handler, not declare a new inline function that inside calls
resizeContent).
Best,
Nicolas
On 10/2/07, retacom-Mmb7MZpHnFY@public.gmane.org
<retacom-Mmb7MZpHnFY@public.gmane.org> wrote:>
> hello,
>
> i start a observe like this
>
> Event.observe(window, "resize", function(event) {resizeContent()
});
>
> how can i stop this?
>
> ____________
> Virus checked by G DATA AntiVirusKit
> Version: AVK 17.8448 from 02.10.2007
> Virus news: www.antiviruslab.com
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---