From 6651fcf016cf4d4f1f58841026297a36bcb9f4b6 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Wed, 20 Oct 2010 16:21:05 +0200 Subject: [PATCH] Listview: Replace live tap event handler with delegate. --- js/jquery.mobile.listview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index 262c3bc6..3b4a7c0e 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -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;