collection maxSize option
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user