Skip to content

Commit 0d03099

Browse files
committed
chore(pagination): remove empty 'setShowing()' and related watcher
1 parent 4a7ec63 commit 0d03099

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/features/pagination/js/pagination.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,6 @@
409409

410410
$scope.$on('$destroy', dataChangeDereg);
411411

412-
var setShowing = function () {
413-
};
414-
415-
var deregT = $scope.$watch('grid.options.totalItems + grid.options.paginationPageSize', setShowing);
416-
417412
var deregP = $scope.$watch('grid.options.paginationCurrentPage + grid.options.paginationPageSize', function (newValues, oldValues) {
418413
if (newValues === oldValues || oldValues === undefined) {
419414
return;
@@ -429,13 +424,11 @@
429424
return;
430425
}
431426

432-
setShowing();
433427
uiGridPaginationService.onPaginationChanged($scope.grid, options.paginationCurrentPage, options.paginationPageSize);
434428
}
435429
);
436430

437431
$scope.$on('$destroy', function() {
438-
deregT();
439432
deregP();
440433
});
441434

0 commit comments

Comments
 (0)