Permalink
Browse files

Init (js/jquery.mobile.init.js): Reusing "$.mobile.firstPage" variabl…

…e to improve performance slightly.
  • Loading branch information...
1 parent 40c67d2 commit 32cc9343bd2660fc41137ba1dec23bc05b1a60ab @Changsuk committed Dec 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.init.js
View
@@ -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 32cc934

Please sign in to comment.