Removed unnecessary bind()
authorAlexander Ebert <ebert@woltlab.com>
Tue, 30 Dec 2014 16:26:46 +0000 (17:26 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 30 Dec 2014 16:26:46 +0000 (17:26 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js

index f781a92524d3d4ae731e9b85aed4b253077603ca..8d564b8ce6e5bffcb33104c040010cbf9b152ae0 100644 (file)
@@ -443,9 +443,7 @@ RedactorPlugins.wutil = function() {
                                        $uuid = WCF.System.Event.addListener('com.woltlab.wcf.redactor', 'keydown_' + this.$textarea.wcfIdentify(), (function(data) {
                                                WCF.System.Event.removeListener('com.woltlab.wcf.redactor', 'keydown_' + this.$textarea.wcfIdentify(), $uuid);
                                                
-                                               setTimeout((function() {
-                                                       $accept.trigger('click');
-                                               }).bind(this), 3000);
+                                               setTimeout(function() { $accept.trigger('click'); }, 3000);
                                        }).bind(this));
                                break;