manually hoist variables

This commit is contained in:
John Bender 2011-08-20 07:21:49 -07:00
parent 1dd791175a
commit 547afbf184

View file

@ -28,6 +28,8 @@
},
onHashChange: function( e ) {
var href, state;
self.hashchangeFired = true;
// only replaceState when pushState support is present and
@ -35,7 +37,7 @@
if( $.support.pushState && $.mobile.path.isPath(location.hash) ) {
// propulate the hash when its not available
var href, state = self.state();
state = self.state();
// make the hash abolute with the current href
href = $.mobile.path.makeUrlAbsolute( state.hash.replace("#", ""), location.href );