Update paging.ts

This commit is contained in:
syuilo 2020-02-12 02:52:43 +09:00
parent 320b3d8617
commit afa4563e1e
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ export default (opts) => ({
this.items.unshift(item); this.items.unshift(item);
if (this.isScrollTop()) { if (this.isScrollTop()) {
// オーバーフローしたら古い投稿は捨てる // オーバーフローしたら古いアイテムは捨てる
if (this.items.length >= opts.displayLimit) { if (this.items.length >= opts.displayLimit) {
this.items = this.items.slice(0, opts.displayLimit); this.items = this.items.slice(0, opts.displayLimit);
this.more = true; this.more = true;