Incorrect method name
authorAlexander Ebert <ebert@woltlab.com>
Thu, 26 Nov 2020 17:45:03 +0000 (18:45 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 26 Nov 2020 17:45:03 +0000 (18:45 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Controller/Clipboard.ts

index ed443bf0c2292a9e02f89fc346b8dffa7e63fbb8..8d0fcbc65383bfcdd4b8bc7b8829f89b84abeb69 100644 (file)
@@ -268,14 +268,14 @@ define(["require", "exports", "tslib", "../Ajax", "../Core", "../Dom/Change/List
                                         }
                                     });
                                 }
-                                this._executeProxyAction(listItem, data, formData);
+                                this.executeProxyAction(listItem, data, formData);
                             },
                             message,
                             template,
                         });
                     }
                     else {
-                        this._executeProxyAction(listItem, data);
+                        this.executeProxyAction(listItem, data);
                     }
                 }
             }
@@ -293,7 +293,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Core", "../Dom/Change/List
         /**
          * Forwards clipboard actions to an individual handler.
          */
-        _executeProxyAction(listItem, data, formData = {}) {
+        executeProxyAction(listItem, data, formData = {}) {
             const objectIds = data.parameters.actionName !== "unmarkAll" ? data.parameters.objectIDs : [];
             const parameters = { data: formData };
             if (Core.isPlainObject(data.internalData.parameters)) {
index 8919e630667504fd304e498fb697d50b11b1784e..de703b4b2e934b4613b962df170da744a88dfc7e 100644 (file)
@@ -365,13 +365,13 @@ class ControllerClipboard {
                   });
               }
 
-              this._executeProxyAction(listItem, data, formData);
+              this.executeProxyAction(listItem, data, formData);
             },
             message,
             template,
           });
         } else {
-          this._executeProxyAction(listItem, data);
+          this.executeProxyAction(listItem, data);
         }
       }
     } else if (message.length) {
@@ -391,11 +391,7 @@ class ControllerClipboard {
   /**
    * Forwards clipboard actions to an individual handler.
    */
-  private _executeProxyAction(
-    listItem: HTMLLIElement,
-    data: ClipboardActionData,
-    formData: ArbitraryObject = {},
-  ): void {
+  private executeProxyAction(listItem: HTMLLIElement, data: ClipboardActionData, formData: ArbitraryObject = {}): void {
     const objectIds = data.parameters.actionName !== "unmarkAll" ? data.parameters.objectIDs : [];
     const parameters = { data: formData };