Reusing "$.mobile.firstPage" variable to improve performance slightly. #5402

Merged
merged 1 commit into from Dec 24, 2012
View
2 js/jquery.mobile.init.js
@@ -77,7 +77,7 @@ define([
$.mobile.firstPage = $pages.first();
// define page container
- $.mobile.pageContainer = $pages.first().parent().addClass( "ui-mobile-viewport" );
+ $.mobile.pageContainer = $.mobile.firstPage.parent().addClass( "ui-mobile-viewport" );
// alert listeners that the pagecontainer has been determined for binding
// to events triggered on it