On 1/15/07, Karl Rudd <[EMAIL PROTECTED]> wrote:
> Love the new site. Don't mind the cleaned up API but I've got quite a
> lot of code that uses the $( expr, jQuery ) syntax and now it's not
> working.
>
> I haven't had time to wade through the code but check the following
> (with Firebug):
>
> <span>Outside</span>
> <div>
>     <span>Inside</span>
> </div>
>
> console.log(
>     $('span', $('div') ),
>     $('span', $('div')[0] )
> );
>
> In jQuery 1.0.x they both (correctly) return "[span]", under 1.1 the
> first returns "[span, span]" while the second returns "[span]".
>
> I believe this indicates that $() is not detecting the jQuery object
> as a context.
>
> Karl Rudd
>
Yeah, I also encountered this problem, so I had to use obj.find('aa')
to replace $('aa', obj)

-- 
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

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

Reply via email to