Skip to content

Commit

Permalink
Merge pull request #5043 from MajorBreakfast/patch-1
Browse files Browse the repository at this point in the history
Remove unnecessary limit check
  • Loading branch information
TimvdLippe authored Jan 16, 2018
2 parents bc95c5a + 5fb9c55 commit 1215f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elements/dom-repeat.html
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@
let itemIdx = isntIdxToItemsIdx[instIdx];
let item = items[itemIdx];
itemsIdxToInstIdx[itemIdx] = instIdx;
if (inst && instIdx < this.__limit) {
if (inst) {
inst._setPendingProperty(this.as, item);
inst._setPendingProperty(this.indexAs, instIdx);
inst._setPendingProperty(this.itemsIndexAs, itemIdx);
Expand Down

0 comments on commit 1215f8d

Please sign in to comment.