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:
parent
75260dd40e
commit
5911f163e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user