> > you suggest adding one special class or attribute to all clickable > elements, so that in my observer I can check for that class/attribute in > the very first line minimizing the amount of if statements
yes > PLUS you suggest to delegate the triggered event to the [clicked] element to module/class/etc., which is responsible for processing events on elements of this type > so that I don't have one big eventhandler and can keep a good software > structure? exactly Also you can develop new modules without changing main event handler, and add/remove elements in document dynamically. -- 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/-/4P2bGPMHmugJ. To post to this group, send email to firstname.lastname@example.org. 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.