More premature optimization
parent
4795045f08
commit
cc630f9ea9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -471,11 +471,12 @@ export default {
|
||||||
// Add placeholders
|
// Add placeholders
|
||||||
const leftNum = (day.count - i * this.numCols);
|
const leftNum = (day.count - i * this.numCols);
|
||||||
const rowCount = leftNum > this.numCols ? this.numCols : leftNum;
|
const rowCount = leftNum > this.numCols ? this.numCols : leftNum;
|
||||||
|
row.photos = new Array(rowCount);
|
||||||
for (let j = 0; j < rowCount; j++) {
|
for (let j = 0; j < rowCount; j++) {
|
||||||
row.photos.push({
|
row.photos[j] = {
|
||||||
flag: constants.FLAG_PLACEHOLDER,
|
flag: constants.FLAG_PLACEHOLDER,
|
||||||
fileid: `${day.dayid}-${i}-${j}`,
|
fileid: `${day.dayid}-${i}-${j}`,
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue