-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid infinite digest loop caused by $watch and $timeout
Backports PR #10036 **Commit 1:** Avoid infinite digest loop in debounce The custom debounce implementation uses Angular's `$timeout`, which interacts unfavourably with the unconditional `$watch` handler used in the `fixed-scroll` directive. It results in an infinite digest being triggered about every 100ms. To avoid that, this commit uses the `invokeApply` option of `$timeout` and instead calls `$scope.$apply` conditionally. * Original sha: 13c677d * Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-01-24T11:30:41Z
- Loading branch information
1 parent
d2af8a1
commit 6d693e0
Showing
3 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters