> Anyway, long story short, i changed this:
>        a.push({name: n, value: this.value});
>    });
> into
>        a.push({name: n, value: this.value});
>    }).end();
> Although this fixes the bug, it is confusing to me when we sometimes
> need an "end" and sometimes not with the each() command.

That can't be the correct permanent fix, though; something else is messing
up the object elsewhere. Looking at the $() constructor in SVN I see this:

        // Watch for when a jQuery object is passed at the context
        if ( c && c.jquery ) return c.find(a);

That would end up doing a pushStack on c (modifying the this object) and it
would also return c--not a copy of c--as the actual object.



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to