« Return to Thread: Bug in $() in jQuery v1.1.1?

Re: Bug in $() in jQuery v1.1.1?

by Jörn Zaefferer :: Rate this Message:

Reply to Author | View in Thread

John Resig schrieb:
> Dan -
>
> I'm fairly certain that this has already been fixed in SVN, by Joern.
> It was an issue with the fact that [0] had a value, while .length was
> set to 0.
>
> Maybe Joern can confirm that this has, in fact, been fixed.
>  
 From what I can see in the example code, that is exactly the issue I fixed.

In case you want to test it with your copy of jQuery, modify pushStack
to look like this:

pushStack: function( a ) {
        var ret = jQuery(a);
        ret.prevObject = this;
        return ret;
},

--
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
discuss@...
http://jquery.com/discuss/

 « Return to Thread: Bug in $() in jQuery v1.1.1?