Indirect variable overshadowing
authorAlexander Ebert <ebert@woltlab.com>
Fri, 5 Jun 2020 10:45:24 +0000 (12:45 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 5 Jun 2020 10:45:24 +0000 (12:45 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabKeydown.js

index aa381ac369fbecbfc4d473e5d55bccfba0b62eea..30498d441e84323ba03b1b5277b66ed2368b5a5d 100644 (file)
@@ -389,7 +389,6 @@ $.Redactor.prototype.WoltLabKeydown = function() {
                                                                        range.selectNodeContents(listItem);
                                                                        range.collapse(false);
                                                                        
-                                                                       var selection = window.getSelection();
                                                                        selection.removeAllRanges();
                                                                        selection.addRange(range);
                                                                }