At the moment, traversal callbacks, like the ones passed to find/filter/etc.
take a single "index" parameter. I'd like to propose that they are unified
with .each as follows:
$("div").filter(function(i, self) {
  // stuff
});

As a separate concern, I'd like to discuss changing the second parameter in
both to be a jQuery object. Obviously, it would need to be done via slow
deprecation for .each, but I don't think it'd break all that much code:

$("div").filter(function(i, self) {
  // self == $(this)
})

Thoughts?

-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to