moved calls into one. #cleaning

This commit is contained in:
scottjehl 2011-04-17 14:24:47 -07:00
parent b649f17d9d
commit 472cbb1778

View file

@ -496,9 +496,11 @@
pageContainerClasses = [];
}
//clear page loader
$.mobile.pageLoading( true );
if(transition && (transition !== 'none')){
$.mobile.pageLoading( true );
if( $.inArray(transition, perspectiveTransitions) >= 0 ){
addContainerClass('ui-mobile-viewport-perspective');
}
@ -522,7 +524,6 @@
});
}
else{
$.mobile.pageLoading( true );
if( from ){
from.removeClass( $.mobile.activePageClass );
}