refactor($rootScope): simplify $emit stopPropagation handling

See https://github.com/angular/angular.js/pull/16293#discussion_r147960028

Closes #16339
This commit is contained in:
Jason Bedard
2017-11-24 00:25:33 -08:00
committed by Martin Staffa
parent f2f5ac7ce4
commit 5838017f26
+1 -2
View File
@@ -1235,8 +1235,7 @@ function $RootScopeProvider() {
//if any listener on the current scope stops propagation, prevent bubbling
if (stopPropagation) {
event.currentScope = null;
return event;
break;
}
//traverse upwards
scope = scope.$parent;