> eq: function( i ) {
>     var el = [ this[ i<0 ? i+this.length : i] ];
>     if (el[0] === undefined) el.length = 0;
>     return this.pushStack( el, 'eq', i );
> };

Yes, I supposed it was an mistyping. Now this is safe in case of "out
of range" but is not in case with an undefined value as element. ( +i
+ this.length is to make eq(i) safe in cases where i is an string )

> It doesn't seem possible to pass the undefined object along. Anyone
> doing that? $(undefined) and $(null) are also unsupported.

$(undefined) and $(null) works fine and are equally to $() and $
(document). Does these are supported form the API or not is not
relevant here, I
think.

I would like to have an John opinion if we have to "support" undefined
values in this cases, and would it be dangerous to break this
"support".
--~--~---------~--~----~------------~-------~--~----~
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