Recompile `Form/Builder/Manager` JS file from TS file
authorMatthias Schmidt <gravatronics@live.com>
Fri, 18 Dec 2020 16:28:29 +0000 (17:28 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 18 Dec 2020 16:28:29 +0000 (17:28 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Manager.js

index a120e7d1cb3b3de8aef511f606b0291227f3fbc4..a7b139096282818e87e666e4502b8dbec5256cca 100644 (file)
@@ -26,14 +26,14 @@ define(["require", "exports", "tslib", "../../Core", "../../Event/Handler", "./F
             throw new Error("Unknown form with id '" + formId + "'.");
         }
         const promises = [];
-        _fields.get(formId).forEach(function (field) {
+        _fields.get(formId).forEach((field) => {
             const fieldData = field.getData();
             if (!(fieldData instanceof Promise)) {
                 throw new TypeError("Data for field with id '" + field.getId() + "' is no promise.");
             }
             promises.push(fieldData);
         });
-        return Promise.all(promises).then(function (promiseData) {
+        return Promise.all(promises).then((promiseData) => {
             return promiseData.reduce((carry, current) => Core.extend(carry, current), {});
         });
     }