From: Alexander Ebert Date: Sun, 31 May 2015 13:32:01 +0000 (+0200) Subject: Removed unnecessary closure in `WoltLab/WCF/UI/Dialog` X-Git-Tag: 3.0.0_Beta_1~2293 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5a9daa04767e23aaab9e5baee9c84bd87711d94;p=GitHub%2FWoltLab%2FWCF.git Removed unnecessary closure in `WoltLab/WCF/UI/Dialog` --- 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);