I'm working on a, well I dare to call it 'Webapp', that has lots of links
that call JS functions. Now I'm wondering, instead of invoking ~30
click-observers, does it perform better to just invoke a single
click-observer and use the findElement method to call the right function?
I'm not sure because I'd need 30 if statements (maybe even more) on every
click, which doesn't seem right either. Also, I find having 1 mega-function
that calls all other function (software-architecture-wise) kinda ugly.
What would you recommend. Does using only 1 observer even boost the
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 firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at