We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00c67d3 commit b798c86Copy full SHA for b798c86
src/ui-scroll.js
@@ -99,7 +99,7 @@ angular.module('ui.scroll', [])
99
buffer.first = origin;
100
buffer.next = origin;
101
buffer.minIndex = Number.MAX_VALUE;
102
- return buffer.maxIndex = Number.MIN_VALUE;
+ buffer.maxIndex = Number.MIN_VALUE;
103
}
104
105
angular.extend(buffer, {
@@ -566,7 +566,7 @@ angular.module('ui.scroll', [])
566
viewport.bind('scroll', resizeAndScrollHandler);
567
viewport.bind('mousewheel', wheelHandler);
568
569
- $scope.$watch(datasource.revision, () => reload());
+ $timeout(() => reload());
570
571
$scope.$on('$destroy', () => {
572
// clear the buffer. It is necessary to remove the elements and $destroy the scopes
0 commit comments