Skip to content

Commit

Permalink
style(tabs): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 16, 2014
1 parent 68de8ed commit 37d75f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/angular/directive/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion js/angular/directive/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 37d75f7

Please sign in to comment.