diff --git a/assets/libs/collection/Collection.ts b/assets/libs/collection/Collection.ts index f30a6f1..e3e3eea 100644 --- a/assets/libs/collection/Collection.ts +++ b/assets/libs/collection/Collection.ts @@ -40,4 +40,9 @@ export class Collection extends Map{ } return false; } + + clear(): void { + this._array.splice(0, this._array.length); + super.clear(); + } } \ No newline at end of file