From b630214fdf9eef596041bd3148babedc70def965 Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Mon, 17 Mar 2014 14:41:51 -0600 Subject: [PATCH] refactor(ionTabBar): remove tab.shown and tab.hidden events Instead, use `on-select` and `on-deselect` attribute callbacks. Alternatively, listen for $scope.$on('$destroy') in a controller inside your tab. --- js/ext/angular/src/directive/ionicTabBar.js | 6 ------ js/ext/angular/test/directive/ionicTabBar.unit.js | 2 -- 2 files changed, 8 deletions(-) diff --git a/js/ext/angular/src/directive/ionicTabBar.js b/js/ext/angular/src/directive/ionicTabBar.js index 7ed16029e0..1c2ed611f9 100644 --- a/js/ext/angular/src/directive/ionicTabBar.js +++ b/js/ext/angular/src/directive/ionicTabBar.js @@ -218,8 +218,6 @@ function($scope, $ionicViewService, $rootScope, $element) { * * Each ionTab has its own view history. * - * Whenever a tab is shown or hidden, it will broadcast a 'tab.shown' or 'tab.hidden' event. - * * @usage * ```html *