mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix the undefined object call func
This commit is contained in:
3
js/angular/service/history.js
vendored
3
js/angular/service/history.js
vendored
@@ -313,7 +313,8 @@ function($rootScope, $state, $location, $window, $timeout, $ionicViewSwitcher, $
|
||||
// the forward has a history
|
||||
for (x = tmp.stack.length - 1; x >= forwardView.index; x--) {
|
||||
// starting from the end destroy all forwards in this history from this point
|
||||
tmp.stack[x].destroy();
|
||||
var stack_x = tmp.stack[x];
|
||||
stack_x && stack_x.destroy && stack_x.destroy();
|
||||
tmp.stack.splice(x);
|
||||
}
|
||||
historyId = forwardView.historyId;
|
||||
|
||||
Reference in New Issue
Block a user