@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 [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 -~----------~----~----~----~------~----~------~--~---
- [Proto-Scripty] Re: Proposal for improving bind() + adding ... kangax
- [Proto-Scripty] Re: Proposal for improving bind() + ad... Ryan Gahl
- [Proto-Scripty] Re: Proposal for improving bind() ... kangax
- [Proto-Scripty] Re: Proposal for improving bind() ... Ryan Gahl
- [Proto-Scripty] Re: Proposal for improving bind() ... T.J. Crowder
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... Ryan Gahl
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... kangax
- [Proto-Scripty] Re: Proposal for improving bind() ... Tobie Langel
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... T.J. Crowder
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... Tobie Langel
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... Robert Kieffer
- [Proto-Scripty] Re: Proposal for improving bind() ... kangax
- [Proto-Scripty] Re: Proposal for improving bind() ... Tobie Langel
- [Proto-Scripty] Re: Proposal for improving bind() ... kangax
- [Proto-Scripty] Re: Proposal for improving bind() ... Tobie Langel
