Skip to content

Commit

Permalink
Fix updates caused by item-recycler data splicing
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Moore committed Mar 25, 2016
1 parent 539354d commit 4906b6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mm-item-recycler/mm-item-recycler.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,19 @@ found here: https://github.com/Polymer/core-list

at = this._recycler.getLowestIndex();

if (lower > at) {
if (at > -1 &&
lower > at) {
lower = at;
}

at = this._recycler.getHighestIndex();

if (upper < at) {
if (at > -1 &&
upper < at) {
upper = at;
}

if (lower < upper) {
if (upper < lower) {
return;
}

Expand Down

0 comments on commit 4906b6a

Please sign in to comment.