fix(tabs): Double tapping a tab would set the wrong view history, closes #656

This commit is contained in:
Adam Bradley
2014-02-21 11:35:46 -06:00
parent 21fcfa06ae
commit f0faae1657

View File

@@ -322,6 +322,9 @@ angular.module('ionic.service.view', ['ui.router', 'ionic.service.platform'])
if(historyId) {
var hist = $rootScope.$viewHistory.histories[ historyId ];
if(hist && hist.stack.length) {
if($rootScope.$viewHistory.currentView && $rootScope.$viewHistory.currentView.viewId === hist.stack[0].viewId) {
return;
}
$rootScope.$viewHistory.forcedNav = {
viewId: hist.stack[0].viewId,
navAction: 'moveBack',