moved initial mobilize call after ID is set

This commit is contained in:
scottjehl 2010-09-19 10:47:27 -04:00
parent 8d0f0ea9b8
commit 843f5810ee

View file

@ -274,10 +274,6 @@
//dom-ready
$(function(){
//mobilize all pages present
mobilize($('[data-role="page"]'));
//set up active page - mobilize it!
startPage = $('body > .ui-page:first');
@ -286,6 +282,9 @@
startPage.attr('id', startPageId);
}
//mobilize all pages present
mobilize($('[data-role="page"]'));
//trigger a new hashchange, hash or not
$window.trigger( "hashchange" );