handle query strings for initial replaceState

This commit is contained in:
John Bender 2011-08-20 07:29:21 -07:00
parent 547afbf184
commit e3fb2e285b

View file

@ -11,7 +11,12 @@
$win = $( window );
$.extend( pushStateHandler, {
initialFilePath: location.pathname,
// TODO move to a path helper, this is rather common functionality
initialFilePath: (function() {
var url = $.mobile.path.parseUrl( location.href );
return url.pathname + url.search;
})(),
// Begin with popstate listening disabled, since it fires at onload in chrome
popListeningEnabled: false,