From d02297672b398d8dc0bbbef79b5b04fb12f5f70b Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Tue, 21 Nov 2017 23:29:13 -0800 Subject: [PATCH] refactor($rootScope): simplify $emit stopPropagation handling --- src/ng/rootScope.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 616cc69676d0..7d29b97a3376 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -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;