This decreases watchers and should improve performance.
I'm pretty sure this is a good change, and briefly tested it on my end.
Without this change, my application was becoming very sluggish, as the list items in the drop-downs each created multiple watchers. I'm using this directive several times on the page and iterating over nearly 1000 items each, so this was a very significant problem.
I renamed what appeared to be an unused property on scope to allow this (scope.isVisible).
I'd appreciate some extra eyes on this before merging in, because I still don't completely understand how this project works under the hood and don't want to mess something up.
This decreases watchers and should improve performance.
I'm pretty sure this is a good change, and briefly tested it on my end.
Without this change, my application was becoming very sluggish, as the list items in the drop-downs each created multiple watchers. I'm using this directive several times on the page and iterating over nearly 1000 items each, so this was a very significant problem.
I renamed what appeared to be an unused property on scope to allow this (
scope.isVisible
).I'd appreciate some extra eyes on this before merging in, because I still don't completely understand how this project works under the hood and don't want to mess something up.