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