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

refactor($rootScope): simplify $emit stopPropagation handling #16339

Merged
merged 1 commit into from
Nov 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/ng/rootScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down