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,18 +69,21 @@ ViewNavigator.prototype.pushView = function( viewDescriptor ) {
|
||||
|
||||
ViewNavigator.prototype.popView = function() {
|
||||
|
||||
if (this.animating || this.history.length <= 1 )
|
||||
return;
|
||||
if ( this.history.length > 1 ) {
|
||||
if (this.animating || this.history.length <= 1 )
|
||||
return;
|
||||
|
||||
var currentViewDescriptor = this.history[ this.history.length-1];
|
||||
if ( currentViewDescriptor.backCallback ) {
|
||||
currentViewDescriptor.backCallback();
|
||||
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 );
|
||||
}
|
||||
|
||||
this.history.pop();
|
||||
var viewDescriptor = this.history[ this.history.length-1 ];
|
||||
viewDescriptor.animation = "popEffect"
|
||||
this.updateView( viewDescriptor );
|
||||
}
|
||||
|
||||
ViewNavigator.prototype.setHeaderPadding = function( amount ) {
|
||||
|
Loading…
Reference in New Issue
Block a user