From d970c20e4c890d358bd61ab832b0683dc7ef1ae4 Mon Sep 17 00:00:00 2001 From: Alex Kovar Date: Sat, 5 Feb 2011 14:03:31 -0600 Subject: [PATCH] fixed error when from is undefined --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 85b174fd..d8e60992 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -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 ); }