null hrefs should just preventDefault and return, rather than returning false. Fixes #1118

This commit is contained in:
scottjehl 2011-02-18 16:46:28 -05:00
parent 00a8082acc
commit b6b7aebe14

View file

@ -659,7 +659,8 @@
if( url === "#" ){
//for links created purely for interaction - ignore
return false;
event.preventDefault();
return;
}
$activeClickedLink = $this.closest( ".ui-btn" ).addClass( $.mobile.activeBtnClass );