mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-09 15:14:44 +00:00
moved a variable to local scope
This commit is contained in:
parent
6297306a5b
commit
592236d915
1 changed files with 3 additions and 3 deletions
|
|
@ -55,10 +55,10 @@
|
|||
|
||||
// send a link through hash tracking
|
||||
jQuery.fn.ajaxClick = function() {
|
||||
var href = jQuery( this ).attr( "href" );
|
||||
var href = jQuery( this ).attr( "href" ),
|
||||
baseURL = location.hash;
|
||||
pageTransition = jQuery( this ).attr( "data-transition" ) || "slide";
|
||||
nextPageRole = jQuery( this ).attr( "data-rel" ),
|
||||
baseURL = location.hash;
|
||||
nextPageRole = jQuery( this ).attr( "data-rel" );
|
||||
//if href is absolute but local, or a local ID, no base needed
|
||||
if( /^\//.test(href) || (/https?:\/\//.test(href) && !!(href).match(location.hostname)) || /^#/.test(href) ){
|
||||
baseURL = '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue