This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(md-tooltip): removed watcher for performance
md-tooltip uses a watcher per tooltip. The watcher is just to watch if scope.visible changes. This variable only changes internally so there's no reason to need a watcher when the changes could be tracked manually. fixes #4033
- Loading branch information
637979f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I've checked the logic and you don't need to call $mdUtil.nextTick(checkVisibility) at any point. The new function is always called by angular, not by dom events.