Closed atticoos closed 8 years ago
Previously, when a directive links and adds all the keys, it would only track the last key iterated.
When the directive is destroyed, only the last key is removed. The others become leaked.
This PR tracks the keys as an array, such that when the directive is destroyed, it ensures all keys are removed by looping through they all the keys that were added.
Tests have been added for this change.
Nice!
Woah, forgot about this. ha :+1:
Previously, when a directive links and adds all the keys, it would only track the last key iterated.
When the directive is destroyed, only the last key is removed. The others become leaked.
This PR tracks the keys as an array, such that when the directive is destroyed, it ensures all keys are removed by looping through they all the keys that were added.
Tests have been added for this change.