fixed error when from is undefined

This commit is contained in:
Alex Kovar 2011-02-05 14:03:31 -06:00
parent 79929949db
commit d970c20e4c

View file

@ -439,7 +439,7 @@
// callback - remove classes, etc
to.animationComplete(function() {
from.add( to ).removeClass("out in reverse " + transition );
to.add(from).removeClass("out in reverse " + transition );
if( from ){
from.removeClass( $.mobile.activePageClass );
}