Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for issue #4424 - Transitions with Pages that have Fixed Toolbars…

… - Remove class in class after transition completes
  • Loading branch information...
commit 00a2926280a5a1f0fbc662214fd58ec2a630e0b4 1 parent 7f27938
@arschmitz arschmitz authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/widgets/fixedToolbar.js
View
5 js/widgets/fixedToolbar.js
@@ -204,7 +204,10 @@ define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.core", "../jque
if ( this._useTransition( notransition ) ) {
$el
.removeClass( "out " + hideClass )
- .addClass( "in" );
+ .addClass( "in" )
+ .animationComplete(function () {
+ $el.removeClass('in');
+ });
}
else {
$el.removeClass( hideClass );

2 comments on commit 00a2926

@johnbender

This one appears to be breaking our fixed-toolbar test. Most likely the test just needs to be updated:

http://swarm.jquery.org:8080/job/jQuery%20Mobile%20Phantom%20Master/775/console

@arschmitz
Owner

The test that's failing explicitly looks for the in class after show which this commit removes. I'm not sure if this class should be there for something else after the animation completes but it dosent seem as though it should. It should only be there durring transition. otherwise this test and the 4th test in this set also which tests for the same thing should be removed. With these tests removed everything runs fine (of course lol)

Please sign in to comment.
Something went wrong with that request. Please try again.