1
0
mirror of https://github.com/moparisthebest/app-UI synced 2024-12-21 23:18:52 -05:00

various minor changes

This commit is contained in:
Andrew Trice 2012-04-11 11:58:33 -04:00
parent 75260dd40e
commit 5911f163e9

View File

@ -69,18 +69,21 @@ ViewNavigator.prototype.pushView = function( viewDescriptor ) {
ViewNavigator.prototype.popView = function() {
if (this.animating || this.history.length <= 1 )
return;
var currentViewDescriptor = this.history[ this.history.length-1];
if ( currentViewDescriptor.backCallback ) {
currentViewDescriptor.backCallback();
}
if ( this.history.length > 1 ) {
if (this.animating || this.history.length <= 1 )
return;
this.history.pop();
var viewDescriptor = this.history[ this.history.length-1 ];
viewDescriptor.animation = "popEffect"
this.updateView( viewDescriptor );
var currentViewDescriptor = this.history[ this.history.length-1];
this.history.pop();
if ( currentViewDescriptor.backCallback ) {
currentViewDescriptor.backCallback();
}
var viewDescriptor = this.history[ this.history.length-1 ];
viewDescriptor.animation = "popEffect"
this.updateView( viewDescriptor );
}
}
ViewNavigator.prototype.setHeaderPadding = function( amount ) {