From ac5151a469667b1cc1b5e2f96d330b71631efd0b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 12 Mar 2012 23:40:19 -0700 Subject: fix(scope): remove scope $destroy event --- src/service/scope.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/service') 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; -- cgit v1.2.3