> 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


> 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?


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 
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to