just use location.pathname. same thing, in hindsight.

This commit is contained in:
scottjehl 2011-08-14 09:30:33 -04:00
parent 6d2f9737db
commit 3ebe7b4218

View file

@ -15,8 +15,7 @@
oldRegisterInternalEvents();
// Initial href without hash becomes base for hash changes
// TODO - get this value from $.mobile.path ?
var initialFilePath = location.href.split( "#" )[0].match( /[^\/]*\/\/[^\/]+(.*)/ ) && RegExp.$1,
var initialFilePath = location.pathname,
// Begin with popstate listening disabled, since it fires at onload in chrome
popListeningEnabled = false,