mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
update tab broadcasts, fixes #415
This commit is contained in:
4
dist/js/ionic-angular.js
vendored
4
dist/js/ionic-angular.js
vendored
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
2
dist/js/ionic-angular.min.js
vendored
2
dist/js/ionic-angular.min.js
vendored
File diff suppressed because one or more lines are too long
4
js/ext/angular/src/directive/ionicTabBar.js
vendored
4
js/ext/angular/src/directive/ionicTabBar.js
vendored
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user