Hi,

On Aug 4, 6:20 pm, Eric <lefauv...@gmail.com> wrote:
> On Jul 30, 1:26 pm, Richard Quadling <rquadl...@gmail.com> wrote:
>
> > $('form_id').observe('blur', function(ev) {
> >  var el = ev.findElement('input[type=text]');
> >  if (el) {
> >   // el is the element that triggered the blur.
> > .../...
> > [1]http://api.prototypejs.org/dom/event/findelement/
>
> According to the provided link, "If no matching element is found, the
> document itself (HTMLDocument node) is returned.".
>
> Is it a bug in the documentation?
> Until now, I've been paranoid testing (el && el != document) but I
> have a feeling that your test works as we think it should (returning
> null or undefined when no matching element is found).

It's a bug in the documentation:
https://prototype.lighthouseapp.com/projects/42103/tickets/160

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com

-- 
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-scriptacul...@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.

Reply via email to