From 5b3c411eaf246b51f52584d575300a8b25bc73b1 Mon Sep 17 00:00:00 2001 From: carlosperate Date: Fri, 13 Mar 2015 06:38:21 +0000 Subject: [PATCH] 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. --- core/blockly.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/blockly.js b/core/blockly.js index d55f62cca..9b7c9cf68 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -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();