mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-25 10:20:34 +00:00
removed nullLink var
This commit is contained in:
parent
86f2d1f90a
commit
f84daa9cd3
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue