Merge pull request #85 from carlosperate/ie_deselect

IE deselect exception fix.
This commit is contained in:
Neil Fraser
2015-03-17 12:08:46 -07:00

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