Changed "click" bindings to "vclick" for listview and anchors.

This commit is contained in:
Kin Blas 2011-02-18 12:40:30 -08:00
parent 807be39d83
commit c063e1ce65
2 changed files with 4 additions and 4 deletions

View file

@ -102,7 +102,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
// if enter or space is pressed, trigger click
case 13:
case 32:
target.trigger( "click" );
target.trigger( "vclick" );
return false;
break;
@ -110,9 +110,9 @@ $.widget( "mobile.listview", $.mobile.widget, {
});
// tapping the whole LI triggers click on the first link
$list.delegate( "li", "click", function(event) {
$list.delegate( "li", "vclick", function(event) {
if ( !$( event.target ).closest( "a" ).length ) {
$( this ).find( "a" ).first().trigger( "click" );
$( this ).find( "a" ).first().trigger( "vclick" );
return false;
}
});

View file

@ -624,7 +624,7 @@
//click routing - direct to HTTP or Ajax, accordingly
$( "a" ).live( "click", function(event) {
$( "a" ).live( "vclick", function(event) {
var $this = $(this),