Just landed a fix for this, SVN rev 6067.

--John



On Thu, Jan 8, 2009 at 7:58 AM, John Resig <[email protected]> wrote:
> Hmm... that's an interesting point. For right now I think pure DOM
> nodes aren't going to have to match in .live() (selector only) - I can
> try and look back at it for a future release.
>
> That being said, I think that this is a bug:
>>  // this doesn't either
>>  $($('body')).live('click',function(){
>>    alert('works!');
>>  });
>
> So I'll try and fix that.
>
> --John
>
>
>
> On Wed, Jan 7, 2009 at 9:34 PM, Kean <[email protected]> wrote:
>>
>> I searched in this mailing list and other also bug tracker but cannot
>> find a discussion of this. There's no documentation for the live
>> method so I assume this is a bug.
>>
>> Here's the simplest case
>>
>> $(function(){
>>  // this does not work
>>  $(document.body).live('click',function(){
>>    alert('works!');
>>  });
>>
>>  // this doesn't either
>>  $($('body')).live('click',function(){
>>    alert('works!');
>>  });
>>
>>  // this works
>>  $('body').live('click',function(){
>>    alert('works!');
>>  });
>> });
>> >>
>>
>

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