refactor($rootScope): simplify $emit stopPropagation handling
See https://github.com/angular/angular.js/pull/16293#discussion_r147960028 Closes #16339
This commit is contained in:
committed by
Martin Staffa
parent
f2f5ac7ce4
commit
5838017f26
+1
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user