@@ -265,6 +265,9 @@ define( [ "jquery",
265265 this . _ui . container . removeClass ( this . _fallbackTransition ) ;
266266 if ( value && value !== "none" ) {
267267 this . _fallbackTransition = $ . mobile . _maybeDegradeTransition ( value ) ;
268+ if ( this . _fallbackTransition === "none" ) {
269+ this . _fallbackTransition = "" ;
270+ }
268271 this . _ui . container . addClass ( this . _fallbackTransition ) ;
269272 }
270273 } ,
@@ -433,7 +436,7 @@ define( [ "jquery",
433436
434437 _animate : function ( args ) {
435438 // NOTE before removing the default animation of the screen
436- // this had an animate callback that would relove the deferred
439+ // this had an animate callback that would resolve the deferred
437440 // now the deferred is resolved immediately
438441 // TODO remove the dependency on the screen deferred
439442 this . _ui . screen
@@ -446,14 +449,16 @@ define( [ "jquery",
446449 if ( args . applyTransition ) {
447450 this . _applyTransition ( args . transition ) ;
448451 }
449- this . _ui . container
450- . animationComplete ( $ . proxy ( args . prereqs . container , "resolve" ) )
451- . addClass ( args . containerClassToAdd )
452- . removeClass ( args . classToRemove ) ;
453- } else {
454- this . _ui . container . removeClass ( args . classToRemove ) ;
455- args . prereqs . container . resolve ( ) ;
452+ if ( this . _fallbackTransition ) {
453+ this . _ui . container
454+ . animationComplete ( $ . proxy ( args . prereqs . container , "resolve" ) )
455+ . addClass ( args . containerClassToAdd )
456+ . removeClass ( args . classToRemove ) ;
457+ return ;
458+ }
456459 }
460+ this . _ui . container . removeClass ( args . classToRemove ) ;
461+ args . prereqs . container . resolve ( ) ;
457462 } ,
458463
459464 // The desired coordinates passed in will be returned untouched if no reference element can be identified via
0 commit comments