Commit 5b3c411e authored by carlosperate's avatar carlosperate

IE deselect exception fix.

IE11 with the developer tools open would still throw an exception on this line of code, so remove it as it is also executed and caught in the setTimeout.
parent 0f2fc491
......@@ -537,7 +537,6 @@ Blockly.removeAllRanges = function() {
if (window.getSelection) { // W3
var sel = window.getSelection();
if (sel && sel.removeAllRanges) {
sel.removeAllRanges();
setTimeout(function() {
try {
window.getSelection().removeAllRanges();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment