Skip to content

Commit

Permalink
Merge pull request #4186 from benoror/patch-1
Browse files Browse the repository at this point in the history
fix(pagination): avoid initial double firing of `paginationChanged`
  • Loading branch information
swalters committed Aug 14, 2015
2 parents b6faacc + 1407038 commit 24408d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/pagination/js/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
var deregT = $scope.$watch('grid.options.totalItems + grid.options.paginationPageSize', setShowing);

var deregP = $scope.$watch('grid.options.paginationCurrentPage + grid.options.paginationPageSize', function (newValues, oldValues) {
if (newValues === oldValues) {
if (newValues === oldValues || oldValues === undefined) {
return;
}

Expand Down

0 comments on commit 24408d8

Please sign in to comment.