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

Commit 6c4d270

Browse files
jbedardNarretz
authored andcommitted
refactor($rootScope): simplify $emit stopPropagation handling
See #16293 (comment) Closes #16339
1 parent 9c95f6d commit 6c4d270

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
@@ -1277,8 +1277,7 @@ function $RootScopeProvider() {
12771277
}
12781278
//if any listener on the current scope stops propagation, prevent bubbling
12791279
if (stopPropagation) {
1280-
event.currentScope = null;
1281-
return event;
1280+
break;
12821281
}
12831282
//traverse upwards
12841283
scope = scope.$parent;

0 commit comments

Comments
 (0)