mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(tabs): fix typo
This commit is contained in:
2
js/angular/directive/tab.js
vendored
2
js/angular/directive/tab.js
vendored
@@ -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
|
||||
|
||||
2
js/angular/directive/tabs.js
vendored
2
js/angular/directive/tabs.js
vendored
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user