diff options
| author | Igor Minar | 2012-03-12 23:40:19 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-13 14:13:53 -0700 |
| commit | ac5151a469667b1cc1b5e2f96d330b71631efd0b (patch) | |
| tree | 451940a5803d72784e4e703975b28a75cf2457cd /src/service | |
| parent | 63be222326f3badbb76371f82d49fed5ab9e3e65 (diff) | |
| download | angular.js-ac5151a469667b1cc1b5e2f96d330b71631efd0b.tar.bz2 | |
fix(scope): remove scope $destroy event
Diffstat (limited to 'src/service')
| -rw-r--r-- | src/service/scope.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/service/scope.js b/src/service/scope.js index 24313620..ef1b7b93 100644 --- a/src/service/scope.js +++ b/src/service/scope.js @@ -450,15 +450,12 @@ function $RootScopeProvider(){ * scope and its children. Removal also implies that the current scope is eligible for garbage * collection. * - * The destructing scope emits an `$destroy` {@link angular.module.ng.$rootScope.Scope#$emit event}. - * * The `$destroy()` is usually used by directives such as * {@link angular.module.ng.$compileProvider.directive.ng-repeat ng-repeat} for managing the unrolling of the loop. * */ $destroy: function() { if (this.$root == this) return; // we can't remove the root node; - this.$emit('$destroy'); var parent = this.$parent; if (parent.$$childHead == this) parent.$$childHead = this.$$nextSibling; |
