[Proto-Scripty] Re: Which parameters to stopObserving are optional?

2009-08-19 Thread Paul E. G. Lynch

Okay, I do see it documented there.  I was looking at the PDF version
I downloaded a while ago, which is missing that part.  I should have
checked the online version first, but I didn't think of it.  Thanks
for your help,
 --Paul

On Aug 18, 5:27 pm, T.J. Crowder t...@crowdersoftware.com wrote:
 Hi,

 It's documented here[1], which is where you get with the links in the
 API TOC.  It also appears there's an outdated page here[2] (note the
 capitalisation) that does not mention this.  Scary.  Can't wait until
 we ditch this Mephisto stuff for the 1.6.1 generated docs.

 [1]http://prototypejs.org/api/event/stopObserving
 [2]http://prototypejs.org/api/event/stopobserving

 HTH,
 --
 T.J. Crowder
 tj / crowder software / com
 Independent Software Engineer, consulting services available

 On Aug 18, 6:27 pm, Paul Lynch plynch...@gmail.com wrote:

  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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Which parameters to stopObserving are optional?

2009-08-18 Thread Alex McAuley

$('foo').stopObserving();
will stop observing all observers on id=foo
$('foo').stopObserving('click');
will stop click observers on id=foo
$('foo').stopObserving('change');
will stop change observers on id=foo
 i think you get the idea!

HTH
Alex Mcauley
http://www.thevacancymarket.com
- 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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Which parameters to stopObserving are optional?

2009-08-18 Thread T.J. Crowder

Hi,

It's documented here[1], which is where you get with the links in the
API TOC.  It also appears there's an outdated page here[2] (note the
capitalisation) that does not mention this.  Scary.  Can't wait until
we ditch this Mephisto stuff for the 1.6.1 generated docs.

[1] http://prototypejs.org/api/event/stopObserving
[2] http://prototypejs.org/api/event/stopobserving

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Aug 18, 6:27 pm, Paul Lynch plynch...@gmail.com wrote:
 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 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---