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

Commit

Permalink
refactor($rootScope): simplify $emit stopPropagation handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard authored and Narretz committed Nov 24, 2017
1 parent f2f5ac7 commit 5838017
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 5838017

Please sign in to comment.