> > you can simplify your javascript this way > > > $$('td a.delete').each(function(s){ > s.observe('click', confirmDelete); > } ); >
Ok that worked. But now I'm very confused. For years I've been intentionally giving anonymous functions to observers because it seemed the work horse functions had no knowledge of the event details unless it was passed directly to them via the anon function. I'm now totally confused. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/f-R60o2ysCUJ. 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.