Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5402 from Changsuk/master

Reusing "$.mobile.firstPage" variable to improve performance slightly.
  • Loading branch information...
commit e5e50d23bd6b3c674a4479d2c541fbe277e6fbd3 2 parents 40c67d2 + 32cc934
@gseguin gseguin authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.