Your results look impressive indeed.
However, I'd like to ponder code source readability and
maintainability with performance (which was the main goal of the
recent changes).
Could you maybe benchmark this:
function bind(context) {
var __method = this, args;
if (arguments.length < 2) {
if (Object.isUndefined(context)) return this;
return function() {
return __method.apply(context, arguments);
}
}
args = slice.call(arguments, 1)
return function() {
var a = merge(args, arguments);
return __method.apply(context, a);
}
}
Thoughts and suggestions from other core members welcomed.
Best,
Tobie
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---