diff --git a/js/angular/directive/tab.js b/js/angular/directive/tab.js index ffedc72ba5..1eb2f4e9aa 100644 --- a/js/angular/directive/tab.js +++ b/js/angular/directive/tab.js @@ -98,7 +98,7 @@ function($rootScope, $animate, $ionicBind, $compile) { tabsCtrl.add($scope); $scope.$on('$destroy', function() { - if(!$scope.$tabsDestory) { + if(!$scope.$tabsDestroy) { // if the containing ionTabs directive is being destroyed // then don't bother going through the controllers remove // method, since remove will reset the active tab as each tab diff --git a/js/angular/directive/tabs.js b/js/angular/directive/tabs.js index 606a506b5f..841960530c 100644 --- a/js/angular/directive/tabs.js +++ b/js/angular/directive/tabs.js @@ -79,7 +79,7 @@ function($ionicViewService, $ionicTabsDelegate, $ionicTabsConfig) { // used so that while destorying an individual tab, each one // doesn't select the next tab as the active one, which causes unnecessary // loading of tab views when each will eventually all go away anyway - $scope.$tabsDestory = true; + $scope.$tabsDestroy = true; deregisterInstance(); });