From 37d75f7f5d08ef88f3c87c2e7b725aeddc2a36bd Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 16 Sep 2014 07:48:42 -0500 Subject: [PATCH] style(tabs): fix typo --- js/angular/directive/tab.js | 2 +- js/angular/directive/tabs.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); });