Hi, On Aug 4, 6:20 pm, Eric <[email protected]> wrote: > On Jul 30, 1:26 pm, Richard Quadling <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
