mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-25 00:24:44 +00:00
manually hoist variables
This commit is contained in:
parent
1dd791175a
commit
547afbf184
1 changed files with 3 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue