Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hcarmona committed Oct 11, 2019
1 parent 5eb282e commit 7d8a1ad
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions iron-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -1323,12 +1323,14 @@ Polymer({
}
});
} else {
let order = [];
const order = [];
this._iterateItems(function(pidx, vidx) {
this.translate3d(0, y + 'px', 0, this._physicalItems[pidx]);
const item = this._physicalItems[pidx];
this.translate3d(0, y + 'px', 0, item);
y += this._physicalSizes[pidx];
if (this._physicalItems[pidx].id) {
order.push(this._physicalItems[pidx].id);
const itemId = item.id;
if (itemId) {
order.push(itemId);
}
});
if (order.length) {
Expand Down

0 comments on commit 7d8a1ad

Please sign in to comment.