From 592236d915994b0df06c1b8752180b72b56985e8 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 2 Oct 2010 15:54:47 -0400 Subject: [PATCH] moved a variable to local scope --- js/jQuery.mobile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index db266276..9f03b6b3 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -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 = '';