Skip to content
This repository
Browse code

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...
commit df3fbca3f4babff61f1069b132c2ed47499d8f06 1 parent fdb77bf
authored
3  js/jquery.mobile.core.js
@@ -47,6 +47,9 @@
47 47
 
48 48
 		// Error response message - appears when an Ajax page request fails
49 49
 		pageLoadErrorMessage: "Error Loading Page",
  50
+		
  51
+		//automatically initialize the DOM when it's ready
  52
+		autoInitializePage: true,
50 53
 
51 54
 		// Support conditions that must be met in order to proceed
52 55
 		// default enhanced qualifications are media query support OR IE 7+
6  js/jquery.mobile.init.js
@@ -124,8 +124,10 @@
124 124
 		$.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
125 125
 	
126 126
 		//dom-ready inits
127  
-		$( $.mobile.initializePage );
128  
-	
  127
+		if( $.mobile.autoInitializePage ){
  128
+			$( $.mobile.initializePage );
  129
+		}
  130
+		
129 131
 		//window load event
130 132
 		//hide iOS browser chrome on load
131 133
 		$window.load( $.mobile.silentScroll );

0 notes on commit df3fbca

Please sign in to comment.
Something went wrong with that request. Please try again.