mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-09 07:04:44 +00:00
Listview: Replace live tap event handler with delegate.
This commit is contained in:
parent
962d5a137b
commit
6651fcf016
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue