will stop observing all observers on id="foo"
will stop click observers on id="foo"
will stop change observers on id="foo"
........ i think you get the idea!

Alex Mcauley
----- Original Message ----- 
From: "Paul Lynch" <plynch...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Tuesday, August 18, 2009 6:27 PM
Subject: [Proto-Scripty] Which parameters to stopObserving are optional?

> I noticed in the code for stopObserving that it appears you can get
> away with just specifying the element, and then (perhaps) it cancels
> all observers for all events for that element.  However, the
> documentation surprisingly does not mention this ability, but lists
> the element, event name, and event handler function as though they
> were required elements.
> It would be very convenient to be able to say Event.stopObserving
> (someElement), and so I'm wondering whether the documentation is
> simply incomplete, or whether it was intentionally trying to
> discourage people from using the method that way.
> Thanks,
>     --Paul
> >

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to