ソースを参照

bug fixed in add feature

robert2206 8 年 前
コミット
73225e43ca
1 ファイル変更1 行追加4 行削除
  1. 1 4
      src/base/base-list-view.ts

+ 1 - 4
src/base/base-list-view.ts

@@ -373,10 +373,7 @@ export abstract class BaseListView<T> extends BaseView<T>{
      */
     add(item: T): void {
         this.items.unshift(item);
-
-        if (this.getItemsShown().length < this.getEndRange()) {
-            this.itemsShown.unshift(item);
-        }
+        this.itemsShown.unshift(item);
     }
 
     /**