collection maxSize option

This commit is contained in:
Yuri Kuznetsov
2025-02-09 12:17:41 +02:00
parent e4959e0c38
commit b8dc4e2dcd
+5
View File
@@ -164,6 +164,7 @@ class Collection {
* orderBy?: string|null,
* urlRoot?: string,
* url?: string,
* maxSize?: number,
* }} [options] Options.
*/
constructor(models, options) {
@@ -173,6 +174,10 @@ class Collection {
this.model = options.model;
}
if (options.maxSize !== undefined) {
this.maxSize = options.maxSize;
}
this._reset();
if (options.entityType) {