From 8c7b05da3ddbfc57e380e6bc39b4c61ee247ab9c Mon Sep 17 00:00:00 2001 From: dgflash Date: Fri, 10 Feb 2023 18:25:38 +0800 Subject: [PATCH] . --- assets/libs/collection/Collection.ts | 5 +++++ 1 file changed, 5 insertions(+) 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