Skip to content

Commit 5838017

Browse files
jbedardNarretz
authored andcommitted
refactor($rootScope): simplify $emit stopPropagation handling
See angular#16293 (comment) Closes angular#16339
1 parent f2f5ac7 commit 5838017

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ng/rootScope.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1235,8 +1235,7 @@ function $RootScopeProvider() {
12351235

12361236
//if any listener on the current scope stops propagation, prevent bubbling
12371237
if (stopPropagation) {
1238-
event.currentScope = null;
1239-
return event;
1238+
break;
12401239
}
12411240
//traverse upwards
12421241
scope = scope.$parent;

0 commit comments

Comments
 (0)