From e26bc3b09eadccdcf0d2367835b1682eb1a6bd00 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 15 Dec 2020 18:40:44 +0100 Subject: [PATCH] Use `WeakSet` for dependency manager forms MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Tim Düsterhus --- .../WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts index 6933eee9cc..521957365a 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts @@ -18,7 +18,7 @@ type PropertiesMap = Map; const _dependencyHiddenNodes = new Set(); const _fields = new Map(); -const _forms = new Set(); +const _forms = new WeakSet(); const _nodeDependencies = new Map(); const _validatedFieldProperties = new WeakMap(); -- 2.20.1