For that purpose, this code is enough:

jQuery.fn.extend({
    isSameAs:function(selectorOrJqueryObject) {
        return
            !!(this.length && (selectorOrJqueryObject =
$(selectorOrJqueryObject)).length) &&
            this.get(0) == selectorOrJqueryObject.get(0);
    }
});

But I wonder which behaviour should be correct if there are more than an
element in the list.

Same length plus identical elements plus identical elements order?
Just same length?
same length plus identical elements, no matters about order?
at least one element of one list in the other one?

etc etc :-)

Regards

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