> ...I'd say it's > a tossup as to how often a bound function will/won't be passed > arguments....
Hmmmm. That would be worth checking. I almost never use bind() with arguments other than the context; in fact, I don't recall the last time I did. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 12, 2:04 pm, Robert Kieffer <bro...@gmail.com> wrote: > @Kangax: That's definitely a nice improvement! I've updated my post to > include your method as well as an "Improved" method that adds my trick > for reusing the args array. The "improved" version is a little slower > when you call the bound function w/out args, but is significantly > faster (on most platforms) when you do pass args. Since I'd say it's > a tossup as to how often a bound function will/won't be passed > arguments this seems like a good tradeoff to make. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---