Permalink
Browse files

implemented the autoInitializePage global config option, so that auto…

…-initialization may be disabled in favor of manually initializing the page later on. Still needs a unit test.
  • Loading branch information...
1 parent a43ce64 commit 09f169f7a607058a2fd8b82834e4904756064063 scottjehl committed Jun 23, 2011
Showing with 7 additions and 2 deletions.
  1. +3 −0 js/jquery.mobile.core.js
  2. +4 −2 js/jquery.mobile.init.js
View
@@ -56,6 +56,9 @@
//error response message - appears when an Ajax page request fails
pageLoadErrorMessage: "Error Loading Page",
+
+ //automatically initialize the DOM when it's ready
+ autoInitializePage: true,
//support conditions that must be met in order to proceed
//default enhanced qualifications are media query support OR IE 7+
View
@@ -116,8 +116,10 @@
$.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
//dom-ready inits
- $( $.mobile.initializePage );
-
+ if( $.mobile.autoInitializePage ){
+ $( $.mobile.initializePage );
+ }
+
//window load event
//hide iOS browser chrome on load
$window.load( $.mobile.silentScroll );

0 comments on commit 09f169f

Please sign in to comment.