> It will make the specific context
> required anytime raw nodes are used
>
Hmm... no it won't?
$( event.target ).closest(".foo"); // will still work, starts at
event.target. goes up to documentElement
$( event.target, context ).closest(".foo") // starts at event.target,
doesn't go higher than context
The case of $(DOMElement, DOMElement) doesn't exist yet, thus it won't be
breaking any existing code. On the other hand, the case of $(String,
DOMElement) will probably just run faster (since it'll be limited by the
DOMElement context).
--John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" 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/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---