Permalink
Browse files

moved page additions after gradeA check in init and removed from core

  • Loading branch information...
1 parent 2b42e62 commit fa9c2216b8a276176bb6675189db513ecbf62242 @johnbender committed Feb 13, 2011
Showing with 9 additions and 8 deletions.
  1. +0 −8 js/jquery.mobile.core.js
  2. +9 −0 js/jquery.mobile.init.js
View
@@ -106,14 +106,6 @@
"</div>" )
: undefined;
- // TODO may be better in mobile.init
- //add mobile, initial load "rendering" classes to docEl
- $html.addClass( "ui-mobile ui-mobile-rendering" );
-
- //define & prepend meta viewport tag, if content is defined
- $.mobile.metaViewportContent ? $( "<meta>", { name: "viewport", content: $.mobile.metaViewportContent}).prependTo( $head ) : undefined;
-
-
//expose some core utilities
$.extend($.mobile, {
View
@@ -8,6 +8,9 @@
*/
(function( $, window, undefined ) {
+ var $html = $( "html" ),
+ $head = $( "head" );
+
// find and enhance the pages in the dom and transition to the first page.
$.mobile.initializePage = function(){
//find present pages
@@ -47,6 +50,12 @@
return;
}
+ //add mobile, initial load "rendering" classes to docEl
+ $html.addClass( "ui-mobile ui-mobile-rendering" );
+
+ //define & prepend meta viewport tag, if content is defined
+ $.mobile.metaViewportContent ? $( "<meta>", { name: "viewport", content: $.mobile.metaViewportContent}).prependTo( $head ) : undefined;
+
//dom-ready inits
$( $.mobile.initializePage );

0 comments on commit fa9c221

Please sign in to comment.