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.
This commit is contained in:
carlosperate
2015-03-13 06:38:21 +00:00
parent 0f2fc4911e
commit 5b3c411eaf

View File

@@ -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();