Permalink
Browse files

Merge pull request #5402 from Changsuk/master

Reusing "$.mobile.firstPage" variable to improve performance slightly.
  • Loading branch information...
2 parents 40c67d2 + 32cc934 commit e5e50d23bd6b3c674a4479d2c541fbe277e6fbd3 @gseguin gseguin committed Dec 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.init.js
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

0 comments on commit e5e50d2

Please sign in to comment.