mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-03 12:24:46 +00:00
moved initial mobilize call after ID is set
This commit is contained in:
parent
8d0f0ea9b8
commit
843f5810ee
1 changed files with 3 additions and 4 deletions
|
|
@ -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" );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue