This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
namedListeners array elements are nulled out instead of spliced from the array #11013
Closed
Description
In $rootScope.Scope#$on the function that is returned, when called nulls out the listener from the namedListeners array. I believe that instead of nulling out the element it should be splicing the element from the array. The side effect of nulling out the element reference is that the array will continue to grow for directives that have listeners that are continually created and destroyed which I have seen in my application.