From f84daa9cd3c93bc490e088e29178b79af9f433dc Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 27 Oct 2010 16:21:27 -0400 Subject: [PATCH] removed nullLink var --- js/jquery.mobile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 625eb2ec..822e3cb7 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -113,10 +113,9 @@ //get href, remove same-domain protocol and host href = $this.attr( "href" ).replace( location.protocol + "//" + location.host, ""), //if it still starts with a protocol, it's external, or could be :mailto, etc - external = /^(:?\w+:|#)/.test( href ) || $this.is( "[target],[rel=external]" ), - nullLink = href == '#'; + external = /^(:?\w+:|#)/.test( href ) || $this.is( "[target],[rel=external]" ); - if( nullLink ){ + if( href === '#' ){ //for links created purely for interaction - ignore return false; }