> Couldn't you just do:
>
> jQuery.fn.and = function(sel){
>    return this.length? this.add(sel) : jQuery([]);
> };

You would lose the ability to use .end() to get back to the previous
object. Since .add() does a pushStack you would want the other case to
do one too to keep the previous object chain consistent.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to