Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…e to improve performance slightly.
  • Loading branch information...
commit 32cc9343bd2660fc41137ba1dec23bc05b1a60ab 1 parent 40c67d2
@Changsuk 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.