Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5838017

Browse files
jbedardNarretz
authored andcommitted
refactor($rootScope): simplify $emit stopPropagation handling
See #16293 (comment) Closes #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)