mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user