Skip to content

Commit

Permalink
fix(grid): replace splice with shift #3409
Browse files Browse the repository at this point in the history
  • Loading branch information
DiyanDimitrov committed Jan 28, 2019
1 parent 710698f commit 85b815b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
} else {
arr.push(item);
length = arr.length + 1;
arr.splice(0, 1);
arr.shift();
}
if (length > maxLength) {
maxLength = length;
Expand Down

0 comments on commit 85b815b

Please sign in to comment.