From f0faae16574b1247b6f5b1fa0180cfb9248804a1 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Fri, 21 Feb 2014 11:35:46 -0600 Subject: [PATCH] fix(tabs): Double tapping a tab would set the wrong view history, closes #656 --- js/ext/angular/src/service/ionicView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ext/angular/src/service/ionicView.js b/js/ext/angular/src/service/ionicView.js index 7e7f58f0bb..ec999e2b99 100644 --- a/js/ext/angular/src/service/ionicView.js +++ b/js/ext/angular/src/service/ionicView.js @@ -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',