Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Transitions: putting back the code back that was accidently removed b…
Browse files Browse the repository at this point in the history
…y commit 8e570e3.
  • Loading branch information
jaspermdegroot committed Jul 19, 2012
1 parent dcb2f22 commit 0ed5aeb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions js/jquery.mobile.transition.js
Expand Up @@ -74,7 +74,10 @@ var createHandler = function( sequential ){

startIn = function(){

$to.addClass( $.mobile.activePageClass );
//prevent flickering in phonegap container
$to.css("z-index", -10);

$to.addClass( $.mobile.activePageClass + toPreClass );

// Send focus to page as it is now display: block
$.mobile.focusPage( $to );
Expand All @@ -83,12 +86,17 @@ var createHandler = function( sequential ){
$to.height( screenHeight + toScroll );

scrollPage();

//restores visibility of the new page
$to.css("z-index", "");

if( !none ){
$to.animationComplete( doneIn );
}

$to.addClass( name + " in" + reverseClass );
$to
.removeClass( toPreClass )
.addClass( name + " in" + reverseClass );

if( none ){
doneIn();
Expand Down

0 comments on commit 0ed5aeb

Please sign in to comment.