Listview: Replace live tap event handler with delegate.

This commit is contained in:
jzaefferer 2010-10-20 16:21:05 +02:00
parent 962d5a137b
commit 6651fcf016

View file

@ -74,7 +74,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
});
//tapping the whole LI triggers ajaxClick on the first link
this.element.find( "li:has(a)" ).live( "tap", function(event) {
this.element.delegate( "li:has(a)", "tap", function(event) {
if( !$(event.target).closest('a').length ){
$( this ).find( "a:first" ).trigger('click');
return false;