On Sep 24, 2:33 pm, Matt Foster <[EMAIL PROTECTED]> wrote:
> You could improve performance a little bit by skipping the each and
> using invoke. You'd have to modify some of the stuff, such as your
> declaration of section_id but it wouldn't be too difficult to convert.
>
> $$("a.more").invoke("observe", "click", function);
>
> http://prototypejs.org/api/enumerable/invokeMatt, `invoke` is actually slower than `each`. `_each` on the other hand is a little faster than `each` (since it avoids a try/catch wrapping) -- kangax --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
