> A big distinction between the two proposals is if DOMElement is not
> contained in DOMElementContext:
>
> $(DOMEelement,DOMElementContext).closest("body"); returns $([]);
>
> $(DOMEelement).closest("body",DOMElementContext); returns $("body");
>
> I vote for the 2nd argument.


In what case would you want to find the closest() match but outside of a
context? What's the point of providing a context then if most closest()
queries will just ignore the context away?

--John

--~--~---------~--~----~------------~-------~--~----~
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