Removed unnecessary closure in `WoltLab/WCF/UI/Dialog`
authorAlexander Ebert <ebert@woltlab.com>
Sun, 31 May 2015 13:32:01 +0000 (15:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 31 May 2015 13:32:01 +0000 (15:32 +0200)
wcfsetup/install/files/js/WoltLab/WCF/UI/Dialog.js

index 80b4627b87eb8f05eb7cf366fcf25f05773a5eb4..fd4dc4ba549e6a8e4f1c1f43b623b4cc811e2305 100644 (file)
@@ -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);