Skip to content

Commit

Permalink
moved page additions after gradeA check in init and removed from core
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Feb 13, 2011
1 parent 2b42e62 commit fa9c221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions js/jquery.mobile.core.js
Expand Up @@ -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, {

Expand Down
9 changes: 9 additions & 0 deletions js/jquery.mobile.init.js
Expand Up @@ -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
Expand Down Expand Up @@ -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 );

Expand Down

0 comments on commit fa9c221

Please sign in to comment.