From 9746650aee528638b3dd05c90f799cfbc9772c20 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Mon, 4 Jan 2016 12:05:41 -0800 Subject: [PATCH] Disable comment creation in IE. --- core/block_svg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/block_svg.js b/core/block_svg.js index 13da0580b..63a302d59 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -32,6 +32,7 @@ goog.require('goog.Timer'); goog.require('goog.asserts'); goog.require('goog.dom'); goog.require('goog.math.Coordinate'); +goog.require('goog.userAgent'); /** @@ -576,7 +577,7 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) { if (this.isEditable() && !this.collapsed_ && this.workspace.options.comments) { // Option to add/remove a comment. - var commentOption = {enabled: true}; + var commentOption = {enabled: !goog.userAgent.IE}; if (this.comment) { commentOption.text = Blockly.Msg.REMOVE_COMMENT; commentOption.callback = function() {