On Dec 30, 2008, at 3:51 PM, John Resig wrote: > >> One thing i'd love to see is full selector support in $.live. since >> both $.delegate and $.listen are limited to basic selectors, leaving >> the user to filter the target inside the callback for more >> complicated >> things like :eq, :not, :text...etc. > > .live has full selector support.
Hi John, Since .live uses .is internally (with the .closest method), it only has supprot for those selectors that .is supports, right? So, $('li:eq(0)') would bind to all li elements, but $('li:eq(1)') would bind to none. Such is the quirkiness of .is and "simple selectors." For example (in Firebug): >>> $('button:eq(2)').is('button:eq(2)') false >>> $('button:eq(2)').is('button:eq(0)') true I'm not sure how full selector support can be achieved with .live, or even if it should at this point, but the documentation, at least, should be clear. Thoughts? --Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---