update tab broadcasts, fixes #415

This commit is contained in:
Adam Bradley
2014-01-14 13:07:52 -06:00
parent 9efe95ef06
commit cf6598b09f
3 changed files with 5 additions and 5 deletions

View File

@@ -2302,7 +2302,7 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
if(childElement) {
childElement.remove();
childElement = null;
$scope.$broadcast('tab.hidden');
$rootScope.$broadcast('tab.hidden');
}
if(childScope) {
childScope.$destroy();
@@ -2315,8 +2315,8 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
clone.removeAttr('title');
childElement = clone;
$element.parent().append(childElement);
$scope.$broadcast('tab.shown');
});
$rootScope.$broadcast('tab.shown');
}
});

View File

File diff suppressed because one or more lines are too long

View File

@@ -177,7 +177,7 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
if(childElement) {
childElement.remove();
childElement = null;
$scope.$broadcast('tab.hidden');
$rootScope.$broadcast('tab.hidden');
}
if(childScope) {
childScope.$destroy();
@@ -190,8 +190,8 @@ angular.module('ionic.ui.tabs', ['ionic.service.view'])
clone.removeAttr('title');
childElement = clone;
$element.parent().append(childElement);
$scope.$broadcast('tab.shown');
});
$rootScope.$broadcast('tab.shown');
}
});