Skip to content

Commit cf6598b

Browse files
author
Adam Bradley
committed
update tab broadcasts, fixes #415
1 parent 9efe95e commit cf6598b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/js/ionic-angular.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
23022302
if(childElement) {
23032303
childElement.remove();
23042304
childElement = null;
2305-
$scope.$broadcast('tab.hidden');
2305+
$rootScope.$broadcast('tab.hidden');
23062306
}
23072307
if(childScope) {
23082308
childScope.$destroy();
@@ -2315,8 +2315,8 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
23152315
clone.removeAttr('title');
23162316
childElement = clone;
23172317
$element.parent().append(childElement);
2318-
$scope.$broadcast('tab.shown');
23192318
});
2319+
$rootScope.$broadcast('tab.shown');
23202320
}
23212321
});
23222322

0 commit comments

Comments
 (0)