From b5a9daa04767e23aaab9e5baee9c84bd87711d94 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 31 May 2015 15:32:01 +0200 Subject: [PATCH] Removed unnecessary closure in `WoltLab/WCF/UI/Dialog` --- wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js b/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js index 80b4627b87..fd4dc4ba54 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js @@ -89,9 +89,7 @@ define( if (options.closeConfirmMessage) { options.onBeforeClose = (function(id) { UIConfirmation.show({ - confirm: (function() { - this.close(id); - }).bind(this), + confirm: this.close.bind(this, id), message: options.closeConfirmMessage }) }).bind(this); -- 2.20.1