From: Matthias Schmidt Date: Tue, 15 Dec 2020 17:40:44 +0000 (+0100) Subject: Use `WeakSet` for dependency manager forms X-Git-Tag: 5.4.0_Alpha_1~526^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e26bc3b09eadccdcf0d2367835b1682eb1a6bd00;p=GitHub%2FWoltLab%2FWCF.git Use `WeakSet` for dependency manager forms Co-authored-by: Tim Düsterhus --- 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();